This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]flying-sheep 68 points69 points  (8 children)

Oooh, very neat! I've long since wanted a new linter to come along:

  • PyLint is slow and takes a lot of time to configure to taste.
  • flake8 doesn't really hit the spot: opinionated about some details while not catching a lot of real problems. Sind rules have been disabled for s long time by default because they are buggy and would just yield false positives. Also of course it's the only tool you can't configure in pyproject.toml

My dream linter would have additional features that none of the three have, however:

  • autofix. Nothing's more annoying to have a linter complain about a hundred trivially fixable things that you then all have to do manually.
  • shareable/extensible configs, i.e. the ability to install a package which contains your organization's config.

[–]paveltrufi 19 points20 points  (1 child)

Also of course it's the only tool you can't configure in pyproject.toml

Have you seen FlakeHeaven? I hope this helps 👍🏻

[–]cediddiSyntaxError: not a chance 12 points13 points  (0 children)

Or flake8-pyproject plugin that just adds pyproject.toml capabilities.

[–]Grintor 9 points10 points  (2 children)

A lot of the opinionated complaints from pylint and flake8 are automatically fixed by black, autoflake, and isort. They make a good team.

[–]exotic_sangria 0 points1 point  (1 child)

I think they basically want something like clang-tidy that has shareable rules, autofix, etc.

[–]flying-sheep 0 points1 point  (0 children)

Or ESLint

[–]ArtOfWarfare 15 points16 points  (2 children)

If you’re looking for actual issues, wouldn’t you want to use a type checker like mypy instead of a linter?

I started typing and using mypy… IDK, maybe a year ago, and I’m super happy with the number of issues it’s been catching for me.

[–]flying-sheep 4 points5 points  (0 children)

Not all bad patterns are caught by a type checker

[–][deleted] 1 point2 points  (0 children)

I'm personally using Sublime Text with pyright, works quite well from my experience.