Skip to content

Commit

Permalink
Re-enable lint for tests, remove usage of pylint (#4921)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Wayne Parrott authored Feb 24, 2018
1 parent 5e7feae commit 03fd77a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
6 changes: 6 additions & 0 deletions packages/google-cloud-language/.flake8
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
[flake8]
exclude =
# Exclude generated code.
**/proto/**
**/gapic/**
*_pb2.py

# Standard linting exemptions.
__pycache__,
.git,
*.pyc,
Expand Down
11 changes: 2 additions & 9 deletions packages/google-cloud-language/nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,9 @@ def lint(session):
serious code quality issues.
"""
session.interpreter = 'python3.6'
session.install('flake8', 'pylint', 'gcp-devrel-py-tools', *LOCAL_DEPS)
session.install('flake8')
session.install('.')
session.run('flake8', 'google/cloud/language')
session.run(
'gcp-devrel-py-tools', 'run-pylint',
'--config', 'pylint.config.py',
'--library-filesets', 'google',
'--test-filesets', 'tests',
# Temporarily allow this to fail.
success_codes=range(0, 100))
session.run('flake8', 'google', 'tests')


@nox.session
Expand Down

0 comments on commit 03fd77a

Please sign in to comment.