linting: configure strict PEP8 and pyflakes linter using flake8
ClosedPublic

Authored by kparal on Jun 18 2015, 8:52 AM.

Details

Summary

This configuration should ensure that all PEP8 errors are displayed in
Phabricator for modified lines and all pyflakes errors are displayed
always. Maximum line length has been set to 99 chars.

Test Plan

I tested it manually by editing the code and running arc lint, it seems to work properly :-)

Diff Detail

Repository
rLTRN libtaskotron
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kparal retitled this revision from to linting: configure strict PEP8 and pyflakes linter using flake8.Jun 18 2015, 8:52 AM
kparal updated this object.
kparal edited the test plan for this revision. (Show Details)
kparal added reviewers: tflink, jskladan, mkrizek.
jskladan accepted this revision.Jun 18 2015, 9:02 AM
This revision is now accepted and ready to land.Jun 18 2015, 9:02 AM
kparal updated this revision to Diff 1065.Jun 18 2015, 12:17 PM
  • mention how to ignore specific lines with flake8
mkrizek accepted this revision.Jun 18 2015, 6:18 PM
tflink accepted this revision.Jun 19 2015, 6:40 AM

I wonder if we might want to change the pep8 stuff to Error once we get all the lint issues out. I suppose it isn't a huge issue if we don't let the warnings by, it just seems a bit odd to me that we'd keep them as warnings long term (I do understand why it's set that way for now).

LGTM, though.

Yes, I set it as a warning temporarily just because we don't want to completely reformat every file we slightly touch. In the future we can easily adjust the configuration to error.

This revision was automatically updated to reflect the committed changes.