-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Run flake8 on Python instead of legacy Python #7388
Conversation
b36795f
to
9a97262
Compare
|
||
echo "Running Python3 flake8 check..." | ||
flake8 . --exclude=*/venv/* --count --select=E901,E999,F821,F822,F823 --show-source --statistics | ||
python3 -m flake8 --version | ||
python3 -m flake8 . --exclude=*/venv/* --count --select=E9,F63,F72,F82 --show-source --statistics |
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.
Are we preserving semantics here (roughly)?
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. This is a superset of the previous tests: E9 runs all E9xx tests and F82 runs all F82x tests. We are forcing flake8 to run on Python 3 because it has a stricter syntax than legacy Python.
@cclauss this is failing the format check, can you take a look? |
@cclauss ideally put PRs into a draft status in this situation, it makes it easier to track what's ready for review, see https://github.blog/2019-02-14-introducing-draft-pull-requests/. |
Signed-off-by: cclauss <cclauss@me.com>
Signed-off-by: cclauss <cclauss@me.com>
5fd5ac7
to
5093561
Compare
/wait |
Signed-off-by: cclauss <cclauss@me.com>
6ba130a
to
92f85b3
Compare
@cclauss I think the ask was to do this in the commit, I'll do that when I merge. |
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.
Thanks
Blocked by:
#7383, #7384, and #7385Related to: #4552
Signed-off-by: cclauss cclauss@me.com
Also adds more critical flake8 tests.
For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md
Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
[Optional Fixes #Issue]
[Optional Deprecated:]