File tree Expand file tree Collapse file tree 2 files changed +35
-3
lines changed
packages/google-cloud-logging Expand file tree Collapse file tree 2 files changed +35
-3
lines changed Original file line number Diff line number Diff line change @@ -70,15 +70,22 @@ def system_tests(session, python_version):
7070
7171@nox .session
7272def lint (session ):
73- """Run flake8 .
73+ """Run linters .
7474
75- Returns a failure if flake8 finds linting errors or sufficiently
75+ Returns a failure if the linters find linting errors or sufficiently
7676 serious code quality issues.
7777 """
7878 session .interpreter = 'python3.6'
79- session .install ('flake8' , * LOCAL_DEPS )
79+ session .install ('flake8' , 'pylint' , 'gcp-devrel-py-tools' , * LOCAL_DEPS )
8080 session .install ('.' )
8181 session .run ('flake8' , 'google/cloud/logging' )
82+ session .run (
83+ 'gcp-devrel-py-tools' , 'run-pylint' ,
84+ '--config' , 'pylint.config.py' ,
85+ '--library-filesets' , 'google' ,
86+ '--test-filesets' , 'tests' ,
87+ # Temporarily allow this to fail.
88+ success_codes = range (0 , 100 ))
8289
8390
8491@nox .session
Original file line number Diff line number Diff line change 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)
You can’t perform that action at this time.
0 commit comments