Skip to content

Commit 997f8dd

Browse files
authored
add pylint score (open-mmlab#119)
* add pylint score * add sc file * Update build.yml * Update build.yml * Update build.yml * auto load config file
1 parent d136001 commit 997f8dd

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/build.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ jobs:
2727
run: |
2828
pip install interrogate
2929
interrogate -v --ignore-init-method --ignore-module --ignore-nested-functions --ignore-regex "__repr__" --fail-under 80 mmdeploy
30-
30+
- name: Check pylint score
31+
run: |
32+
pip install pylint
33+
pylint mmdeploy
3134
build_cpu:
3235
runs-on: ubuntu-18.04
3336
strategy:

.pylintrc

+7-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
extension-pkg-whitelist=
77

88
# Specify a score threshold to be exceeded before program exits with error.
9-
fail-under=10.0
9+
fail-under=8.5
1010

1111
# Add files or directories to the blacklist. They should be base names, not
1212
# paths.
@@ -165,7 +165,11 @@ disable=print-statement,
165165
arguments-differ,
166166
cyclic-import,
167167
bad-super-call,
168-
too-many-statements
168+
too-many-statements,
169+
unused-argument,
170+
import-outside-toplevel,
171+
import-error,
172+
super-with-arguments
169173

170174
# Enable the message, report, category or checker with the given id(s). You can
171175
# either give multiple identifier separated by comma (,) or put this option
@@ -193,7 +197,7 @@ evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / stateme
193197
output-format=text
194198

195199
# Tells whether to display a full report or only the messages.
196-
reports=no
200+
reports=yes
197201

198202
# Activate the evaluation score.
199203
score=yes

0 commit comments

Comments
 (0)