8000 Travis CI: Add flake8 which is a superset of pycodestyle and pyflakes by cclauss · Pull Request #1470 · cloudtools/troposphere · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 2 commits into from
Sep 19, 2019

Conversation

cclauss
Copy link
Contributor
@cclauss cclauss commented Jul 26, 2019

flake8 runs all the tests that pycodestyle and pyflakes do but also adds the Fxxx errors.

basestring was removed in Python 3.

[__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
Copy link
Contributor
@michael-k michael-k Sep 18, 2019

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?

Copy link
Contributor Author
@cclauss cclauss Sep 18, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Done.

@markpeek
Copy link
Member

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?

@michael-k
Copy link
Contributor

pip install --upgrade flake8 "pycodestyle==2.5.0" is still possible

@markpeek markpeek merged commit 49e5833 into cloudtools:master Sep 19, 2019
@markpeek
Copy link
Member

Thank you for the PR. I'll be pushing a change to Makefile to run flake8 via "make test" to ensure consistency.

markpeek added a commit that referenced this pull request Sep 19, 2019
@cclauss
Copy link
Contributor Author
cclauss commented Sep 19, 2019

I like make lint for things like flake8 and then make test for things like pytest, unittests, doctests, etc.

@cclauss cclauss deleted the patch-1 branch September 19, 2019 14:07
davemasino pushed a commit to davemasino/troposphere that referenced this pull request Oct 17, 2019
davemasino pushed a commit to davemasino/troposphere that referenced this pull request Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0