Skip to content

Commit a5cb9e3

Browse files
committed
Updating lint rules to account for new generated files.
1 parent 5f1c823 commit a5cb9e3

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

scripts/pylintrc_default

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@
2727
# DEFAULT: ignore=CVS
2828
# NOTE: This path must be relative due to the use of
2929
# os.walk in astroid.modutils.get_module_files.
30-
# RATIONALE:
31-
# _datastore_v1_pb2.py: protobuf-generated code.
32-
ignore =
33-
_datastore_v1_pb2.py
30+
# RATIONALE: No files to ignore.
31+
ignore=
3432

3533
# Pickle collected data for later comparisons.
3634
# DEFAULT: persistent=yes

scripts/run_pylint.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@
2929

3030

3131
IGNORED_DIRECTORIES = [
32-
'gcloud/bigtable/_generated',
33-
'gcloud/datastore/_generated',
32+
os.path.join('gcloud', 'bigtable', '_generated'),
33+
os.path.join('gcloud', 'datastore', '_generated'),
3434
]
3535
IGNORED_FILES = [
36-
'gcloud/datastore/_datastore_v1_pb2.py',
37-
'docs/conf.py',
36+
os.path.join('docs', 'conf.py'),
3837
'setup.py',
3938
]
4039
SCRIPTS_DIR = os.path.abspath(os.path.dirname(__file__))

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ deps = {[testenv:docs]deps}
6161
passenv = {[testenv:docs]passenv}
6262

6363
[pep8]
64-
exclude = gcloud/datastore/_generated/*,gcloud/datastore/_datastore_v1_pb2.py,gcloud/bigtable/_generated/*,docs/conf.py,
64+
exclude = docs/conf.py,gcloud/bigtable/_generated/*,gcloud/datastore/_generated/*
6565
verbose = 1
6666

6767
[testenv:lint]

0 commit comments

Comments
 (0)