Skip to content

Commit ab9d4b0

Browse files
committed
[ci] Enable pylint for tests/python/ci
This fixes up the pylint issues as part of #11414 for the CI tests
1 parent 83bbcd7 commit ab9d4b0

File tree

6 files changed

+154
-77
lines changed

6 files changed

+154
-77
lines changed

tests/lint/pylint.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,8 @@ python3 -m pylint vta/python/vta --rcfile="$(dirname "$0")"/pylintrc
2222
python3 -m pylint tests/python/unittest/test_tvmscript_type.py --rcfile="$(dirname "$0")"/pylintrc
2323
python3 -m pylint tests/python/contrib/test_cmsisnn --rcfile="$(dirname "$0")"/pylintrc
2424
python3 -m pylint tests/python/relay/aot/*.py --rcfile="$(dirname "$0")"/pylintrc
25-
25+
python3 -m pylint python/tvm --rcfile="$(dirname "$0")"/pylintrc
26+
python3 -m pylint vta/python/vta --rcfile="$(dirname "$0")"/pylintrc
27+
python3 -m pylint tests/python/unittest/test_tvmscript_type.py --rcfile="$(dirname "$0")"/pylintrc
28+
python3 -m pylint tests/python/contrib/test_cmsisnn --rcfile="$(dirname "$0")"/pylintrc
29+
python3 -m pylint tests/python/ci --rcfile="$(dirname "$0")"/pylintrc

tests/python/ci/__init__.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
"""Infrastructure and tests for CI scripts"""

0 commit comments

Comments
 (0)