Skip to content

Use 'diff_base' for pycodestyle check, if set. - #2486

Merged
tseaver merged 3 commits into
googleapis:masterfrom
tseaver:pycodestyle-use_diff_base
Oct 4, 2016
Merged

Use 'diff_base' for pycodestyle check, if set.#2486
tseaver merged 3 commits into
googleapis:masterfrom
tseaver:pycodestyle-use_diff_base

Conversation

@tseaver

Copy link
Copy Markdown
Contributor

Speeds it up, plus reduces spew when testing locally.

Speeds it up, plus reduces spew when testing locally.
@googlebotgooglebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 3, 2016
Comment threadscripts/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.

This comment was marked as spam.

@dhermes

Copy link
Copy Markdown
Contributor

@tseaver I recently introduced script_utils for shared code like this. Care to move?

Comment threadscripts/pycodestyle_on_repo.py Outdated
import subprocess
import sys

from script_utils import get_files_for_linting

This comment was marked as spam.

Comment threadscripts/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.

@dhermesdhermes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@tseaver
tseaver merged commit 32cce91 into googleapis:masterOct 4, 2016
@tseaver
tseaver deleted the pycodestyle-use_diff_base branch October 4, 2016 05:11
@dhermesdhermes mentioned this pull request Oct 5, 2016
dhermes added a commit to dhermes/google-cloud-python that referenced this pull request Oct 5, 2016
dhermes added a commit to dhermes/google-cloud-python that referenced this pull request Oct 6, 2016
dhermes added a commit to dhermes/google-cloud-python that referenced this pull request Oct 6, 2016
dhermes added a commit to dhermes/google-cloud-python that referenced this pull request Oct 6, 2016
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
parthea pushed a commit that referenced this pull request Apr 1, 2026
This change is cleaning up remaining Python 3.9 support codes.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yesThis human has signed the Contributor License Agreement.testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@tseaver@dhermes@daspecster@googlebot