Skip to content

Commit 41cff28

Browse files
author
Jon Wayne Parrott
authored
Re-enable pylint in info-only mode for all packages (#3519)
1 parent 8d8cdce commit 41cff28

File tree

2 files changed

+35
-3
lines changed

2 files changed

+35
-3
lines changed

packages/google-cloud-storage/nox.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,22 @@ def system_tests(session, python_version):
6767

6868
@nox.session
6969
def lint(session):
70-
"""Run flake8.
70+
"""Run linters.
7171
72-
Returns a failure if flake8 finds linting errors or sufficiently
72+
Returns a failure if the linters find linting errors or sufficiently
7373
serious code quality issues.
7474
"""
7575
session.interpreter = 'python3.6'
76-
session.install('flake8', *LOCAL_DEPS)
76+
session.install('flake8', 'pylint', 'gcp-devrel-py-tools', *LOCAL_DEPS)
7777
session.install('.')
7878
session.run('flake8', 'google/cloud/storage')
79+
session.run(
80+
'gcp-devrel-py-tools', 'run-pylint',
81+
'--config', 'pylint.config.py',
82+
'--library-filesets', 'google',
83+
'--test-filesets', 'tests',
84+
# Temporarily allow this to fail.
85+
success_codes=range(0, 100))
7986

8087

8188
@nox.session
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright 2017 Google Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
"""This module is used to configure gcp-devrel-py-tools run-pylint."""
16+
17+
# Library configuration
18+
19+
# library_additions = {}
20+
# library_replacements = {}
21+
22+
# Test configuration
23+
24+
# test_additions = copy.deepcopy(library_additions)
25+
# test_replacements = copy.deepcopy(library_replacements)

0 commit comments

Comments
 (0)