Skip to content
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

Updating lint tox rule #1348

Merged
merged 2 commits into from
Jan 7, 2016
Merged

Conversation

dhermes
Copy link
Contributor

@dhermes dhermes commented Jan 6, 2016

Two chief changes

  • Moving run_pylint and pylintrc_default into the scripts/ directory (along with all other scripts used by tox)
  • Swapping pep8_on_repo.sh for pep8_on_repo.py to avoid using bash. (We require a script --Python or bash -- since we only run pep8 on files that are checked in to the repo by using git ls-files. Prior to this change, spurious Python files would cause tox -e lint to fail.)

@tseaver I decided to do this partially because of fix-ups for #714 and partially for #1123.

We require a script (Python or bash) since we only run
pep8 on files that are checked in to the repo by using
`git ls-files`. (Prior to this change, spurious Python files
would cause `tox -e lint` to fail.)
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jan 6, 2016
TEST_RC = 'pylintrc_reduced'
SCRIPTS_DIR = os.path.abspath(os.path.dirname(__file__))
PRODUCTION_RC = os.path.join(SCRIPTS_DIR, 'pylintrc_default')
TEST_RC = os.path.join(SCRIPTS_DIR, 'pylintrc_reduced')

This comment was marked as spam.

This comment was marked as spam.

@tseaver
Copy link
Contributor

tseaver commented Jan 7, 2016

LGTM

dhermes added a commit that referenced this pull request Jan 7, 2016
@dhermes dhermes merged commit 22642cd into googleapis:master Jan 7, 2016
@dhermes dhermes deleted the updating-lint-tox-rule branch January 7, 2016 22:49
dhermes added a commit to dhermes/google-cloud-python that referenced this pull request Jan 8, 2016
Also making pep8_on_repo exit with the correct
status code. This was a bug introduced in googleapis#1348.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement. testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants