File tree Expand file tree Collapse file tree
packages/google-cloud-bigtable Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,15 +65,22 @@ def system_tests(session, python_version):
6565
6666@nox .session
6767def lint (session ):
68- """Run flake8 .
68+ """Run linters .
6969
70- Returns a failure if flake8 finds linting errors or sufficiently
70+ Returns a failure if the linters find linting errors or sufficiently
7171 serious code quality issues.
7272 """
7373 session .interpreter = 'python3.6'
74- session .install ('flake8' , * LOCAL_DEPS )
74+ session .install ('flake8' , 'pylint' , 'gcp-devrel-py-tools' , * LOCAL_DEPS )
7575 session .install ('.' )
7676 session .run ('flake8' , 'google/cloud/bigtable' )
77+ session .run (
78+ 'gcp-devrel-py-tools' , 'run-pylint' ,
79+ '--config' , 'pylint.config.py' ,
80+ '--library-filesets' , 'google' ,
81+ '--test-filesets' , 'tests' ,
82+ # Temporarily allow this to fail.
83+ success_codes = range (0 , 100 ))
7784
7885
7986@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