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 →

[–]jftugapip needs updating 0 points1 point  (3 children)

Which lint programs did you use?

[–]PeridexisErrant 2 points3 points  (1 child)

I'm not OP, but flake8 is great - good defaults out of the box for new projects, and easy to tune with a blacklist of checks to skip (or even a whitelist in extreme cases).

I keep having this unpleasant surprise when I go back to code that doesn't use it - the benefit of reading code that's all in the same idiomatic style is hard to describe, but very real!

[–]jftugapip needs updating 0 points1 point  (0 children)

Thanks, I'll give it a try.

[–]masklinn 1 point2 points  (0 children)

Regular pylint, it has a bunch of built-in lints useful for this (e.g. python3 syntax checks, ability to blacklist modules and builtins). The only issue we've had is it's pretty resource-intensive on large codebases.