diff --git a/scripts/pylintrc_default b/scripts/pylintrc_default index 79c31cf9a83c..79586b614d56 100644 --- a/scripts/pylintrc_default +++ b/scripts/pylintrc_default @@ -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 diff --git a/scripts/run_pylint.py b/scripts/run_pylint.py index d3d6ac2437c2..89975a3047ee 100644 --- a/scripts/run_pylint.py +++ b/scripts/run_pylint.py @@ -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__)) diff --git a/tox.ini b/tox.ini index 31b8ba2789a5..f35c8f8f1c81 100644 --- a/tox.ini +++ b/tox.ini @@ -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]