-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Travis CI: Add flake8 which is a superset of pycodestyle and pyflakes 8000 #1470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
[__flake8__](http://flake8.pycqa.org/) runs all the tests that pycodestyle and pyflakes do but also adds the Fxxx errors.
- pycodestyle --show-source --show-pep8 . | ||
- pyflakes . | ||
- flake8 . --show-source |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The invocations of pycodestyle
and pyflakes
can be removed, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Done.
I've been hesitant about accepting this PR since there are times when I've needed to "pin" a version of pycodestyle due to new rules or other breakage (5548d43). Is there a similar way to map pycodestyle versions to flake8 versions in the case of needing a rollback? |
|
Thank you for the PR. I'll be pushing a change to Makefile to run flake8 via "make test" to ensure consistency. |
I like make lint for things like flake8 and then make test for things like pytest, unittests, doctests, etc. |
flake8 runs all the tests that pycodestyle and pyflakes do but also adds the Fxxx errors.
basestring was removed in Python 3.