Skip to content

Commit

Permalink
Updating lint rules to account for new generated files.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhermes committed Jan 15, 2016
1 parent 5f1c823 commit a5cb9e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
6 changes: 2 additions & 4 deletions scripts/pylintrc_default
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@
# DEFAULT: ignore=CVS
# NOTE: This path must be relative due to the use of
# os.walk in astroid.modutils.get_module_files.
# RATIONALE:
# _datastore_v1_pb2.py: protobuf-generated code.
ignore =
_datastore_v1_pb2.py
# RATIONALE: No files to ignore.
ignore=

# Pickle collected data for later comparisons.
# DEFAULT: persistent=yes
Expand Down
7 changes: 3 additions & 4 deletions scripts/run_pylint.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@


IGNORED_DIRECTORIES = [
'gcloud/bigtable/_generated',
'gcloud/datastore/_generated',
os.path.join('gcloud', 'bigtable', '_generated'),
os.path.join('gcloud', 'datastore', '_generated'),
]
IGNORED_FILES = [
'gcloud/datastore/_datastore_v1_pb2.py',
'docs/conf.py',
os.path.join('docs', 'conf.py'),
'setup.py',
]
SCRIPTS_DIR = os.path.abspath(os.path.dirname(__file__))
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ deps = {[testenv:docs]deps}
passenv = {[testenv:docs]passenv}

[pep8]
exclude = gcloud/datastore/_generated/*,gcloud/datastore/_datastore_v1_pb2.py,gcloud/bigtable/_generated/*,docs/conf.py,
exclude = docs/conf.py,gcloud/bigtable/_generated/*,gcloud/datastore/_generated/*
verbose = 1

[testenv:lint]
Expand Down

0 comments on commit a5cb9e3

Please sign in to comment.