Skip to content

Run flake8 on Python instead of legacy Python - #7388

Merged
htuch merged 3 commits into
envoyproxy:masterfrom
cclauss:run-flake8-on-Python
Jun 27, 2019
Merged

htuch merged 3 commits into
envoyproxy:masterfrom
cclauss:run-flake8-on-Python

Conversation

@cclauss

@cclauss cclauss commented Jun 24, 2019 •

Copy link
Copy Markdown
Contributor

Blocked by: #7383, #7384, and #7385

Related to: #4552

Signed-off-by: cclauss [email protected]

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:]

@cclauss
cclauss force-pushed the run-flake8-on-Python branch 4 times, most recently from b36795f to 9a97262 Compare June 24, 2019 18:33
Comment thread tools/format_python_tools.sh Outdated

Copy link
Copy Markdown
Member

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)?

Copy link
Copy Markdown
Contributor Author

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.

@htuch

htuch commented Jun 25, 2019

Copy link
Copy Markdown
Member

@cclauss this is failing the format check, can you take a look?
/wait

@cclauss

cclauss commented Jun 26, 2019

Copy link
Copy Markdown
Contributor Author

@htuch The commit message is clear: Blocked by: #7383, #7384, and #7385

@htuch

htuch commented Jun 26, 2019

Copy link
Copy Markdown
Member

@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/.

@cclauss
cclauss force-pushed the run-flake8-on-Python branch from 5fd5ac7 to 5093561 Compare June 26, 2019 05:18
@asraa

asraa commented Jun 26, 2019 •

Copy link
Copy Markdown
Contributor

Hey, thanks! Do you mind also updated the python version in

virtualenv "${VENV_DIR}"/venv --no-site-packages --python=python2.7
?

And link issue #7322

@htuch

htuch commented Jun 26, 2019

Copy link
Copy Markdown
Member

/wait

@cclauss
cclauss force-pushed the run-flake8-on-Python branch from 6ba130a to 92f85b3 Compare June 26, 2019 23:18
@cclauss

cclauss commented Jun 26, 2019

Copy link
Copy Markdown
Contributor Author

@asraa I am not sure how to "link issue #7322".

@htuch

htuch commented Jun 27, 2019

Copy link
Copy Markdown
Member

@cclauss I think the ask was to do this in the commit, I'll do that when I merge.

@htuch htuch left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks

@htuch
htuch merged commit eb65b20 into envoyproxy:master Jun 27, 2019
@cclauss
cclauss deleted the run-flake8-on-Python branch June 27, 2019 14:06
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