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 committed Feb 24, 2018
1 parent 7f4a584 commit 804dccf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 deletions.
6 changes: 6 additions & 0 deletions packages/google-cloud-vision/.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
12 changes: 2 additions & 10 deletions packages/google-cloud-vision/nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,17 +103,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/vision')
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
def lint_setup_py(session):
Expand Down
4 changes: 0 additions & 4 deletions packages/google-cloud-vision/tests/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,15 @@

"""System tests for Vision API."""

import functools
import io
import os
import unittest

import six

from google.cloud import exceptions
from google.cloud import storage
from google.cloud import vision

from test_utils.retry import RetryErrors
from test_utils.retry import RetryResult
from test_utils.system import unique_resource_id


Expand Down
1 change: 0 additions & 1 deletion packages/google-cloud-vision/tests/unit/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
from google.cloud.vision_v1 import types



class TestSingleImageHelper(unittest.TestCase):
def setUp(self):
credentials = mock.Mock(spec=Credentials)
Expand Down

0 comments on commit 804dccf

Please sign in to comment.