Skip to content

Conversation

@bneradt
Copy link
Contributor

@bneradt bneradt commented Sep 14, 2020

This is a cherry pick to 9.0.x of the following PR:
#7186


It was found that if someone has non-commited Python files, such as can
happen if they have a virtual environment in their source tree, autopep8
will inspect those as well. This is slow and probably not desired by the
user.

This patch only runs autopep8 on files tracked by git. It will also
enable autopep8 to check .test.ext extensions, thus the updates to those
files.

It also has autopep8 run silently so it doesn't produce as much noise.

(cherry picked from commit a815016)

It was found that if someone has non-commited Python files, such as can
happen if they have a virtual environment in their source tree, autopep8
will inspect those as well. This is slow and probably not desired by the
user.

This patch only runs autopep8 on files tracked by git. It will also
enable autopep8 to check .test.ext extensions, thus the updates to those
files.

It also has autopep8 run silently so it doesn't produce as much noise.

(cherry picked from commit a815016)
@bneradt bneradt added the Build work related to build configuration or environment label Sep 14, 2020
@bneradt bneradt added this to the 9.0.0 milestone Sep 14, 2020
@bneradt bneradt self-assigned this Sep 14, 2020
@bneradt bneradt changed the title autopep8: avoid running on non-tracked files. (#7186) autopep8: avoid running on non-tracked files. Sep 14, 2020
@masaori335 masaori335 added the Backport Marked for backport for an LTS patch release label Sep 15, 2020
@zwoop
Copy link
Contributor

zwoop commented Sep 28, 2020

This cherry-picks cleanly, closing.

@zwoop zwoop closed this Sep 28, 2020
@bneradt bneradt deleted the cherry_pick_autopep8_only_on_tracked_files branch September 30, 2020 23:21
@zwoop zwoop removed this from the 9.0.0 milestone Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backport Marked for backport for an LTS patch release Build work related to build configuration or environment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants