Skip to content

Commit

Permalink
Exclude generated code from linter. (googleapis#4375)
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver authored Nov 9, 2017
1 parent 88f6409 commit 35b7146
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion spanner/pylint.config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,18 @@

"""This module is used to configure gcp-devrel-py-tools run-pylint."""

import copy

from gcp_devrel.tools import pylint

# Library configuration

# library_additions = {}
# library_replacements = {}
# Ignore generated code
library_replacements = copy.deepcopy(pylint.DEFAULT_LIBRARY_RC_REPLACEMENTS)
library_replacements['MASTER']['ignore'].append('spanner_v1')
library_replacements['MASTER']['ignore'].append('spanner_admin_instance_v1')
library_replacements['MASTER']['ignore'].append('spanner_admin_database_v1')

# Test configuration

Expand Down

0 comments on commit 35b7146

Please sign in to comment.