DEV Community

Discussion on: Linting as Lightweight Defect Detection for Python

Collapse
joelbennett profile image
Joel Bennett

As someone who has inherited an... interesting... code base, I totally agree that flake8 is great. Another thing that we've been slowly trying to do as a team is clean up things as we go. E.g.: with every pull request, run and correct any flake8 warnings on functions that you touch. It's been slowly getting better.

Collapse
sethmlarson profile image
Seth Michael Larson Author

Completely agree! I've done something exactly like how you describe. That method works great, especially for smaller teams! :)

The trouble is when it's a part of the build process it checks every file instead of just the areas around where you make changes. This is one of the nice things about having things like allow_failure in travis.yml along with similar options in other Continuous Integration services.