-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Use 'diff_base' for pycodestyle check, if set. #2486
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
Speeds it up, plus reduces spew when testing locally.
scripts/pycodestyle_on_repo.py
Outdated
| os.chdir(git_root) | ||
| python_files = subprocess.check_output(['git', 'ls-files', '*py']) | ||
| python_files = python_files.strip().split() | ||
| candidates, _ = get_files_for_linting() |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
@tseaver I recently introduced |
scripts/pycodestyle_on_repo.py
Outdated
| import subprocess | ||
| import sys | ||
|
|
||
| from script_utils import get_files_for_linting |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
scripts/script_utils.py
Outdated
| be used. | ||
| :rtype: pair | ||
| :returns: Tuple of the diff base using the the list of filenames to be |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Also, fix a "the the" typo.
dhermes
left a comment
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.
LGTM
Issue introduced in googleapis#2486.
Was an unintended side-effect of googleapis#2486.
Was an unintended side-effect of googleapis#2486.
Issue introduced in googleapis#2486.
Was an unintended side-effect of googleapis#2486.
Speeds it up, plus reduces spew when testing locally.