Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1.8k
Updating lint tox rule#1348
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
Uh oh!
There was an error while loading. Please reload this page.
Updating lint tox rule #1348
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # Copyright 2016 Google Inc. All rights reserved. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| """Custom script to run pep8 on gcloud codebase. | ||
| This runs pep8 as a script via subprocess but only runs it on the | ||
| .py files that are checked in to the repository. | ||
| """ | ||
| import os | ||
| import subprocess | ||
| def main(): | ||
| """Run pep8 on all Python files in the repository.""" | ||
| git_root = subprocess.check_output( | ||
| ['git', 'rev-parse', '--show-toplevel']).strip() | ||
| os.chdir(git_root) | ||
| python_files = subprocess.check_output(['git', 'ls-files', '*py']) | ||
| python_files = python_files.strip().split() | ||
| pep8_command = ['pep8'] + python_files | ||
| subprocess.call(pep8_command) | ||
| if __name__ == '__main__': | ||
| main() |
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -36,8 +36,9 @@ | ||
| 'docs/conf.py', | ||
| 'setup.py', | ||
| ] | ||
| PRODUCTION_RC = 'pylintrc_default' | ||
| 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.Sorry, something went wrong. Uh oh!There was an error while loading. Please reload this page.
This comment was marked as spam.Sorry, something went wrong. Uh oh!There was an error while loading. Please reload this page. | ||
| TEST_DISABLED_MESSAGES = [ | ||
| 'attribute-defined-outside-init', | ||
| 'exec-used', | ||
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.