add pylint score (#119)

* add pylint score

* add sc file

* Update build.yml

* Update build.yml

* Update build.yml

* auto load config file
pull/12/head
RunningLeon 2021-10-11 14:52:19 +08:00 committed by GitHub
parent d136001aa6
commit 997f8dd9a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 4 deletions

View File

@ -27,7 +27,10 @@ jobs:
run: |
pip install interrogate
interrogate -v --ignore-init-method --ignore-module --ignore-nested-functions --ignore-regex "__repr__" --fail-under 80 mmdeploy
- name: Check pylint score
run: |
pip install pylint
pylint mmdeploy
build_cpu:
runs-on: ubuntu-18.04
strategy:

View File

@ -6,7 +6,7 @@
extension-pkg-whitelist=
# Specify a score threshold to be exceeded before program exits with error.
fail-under=10.0
fail-under=8.5
# Add files or directories to the blacklist. They should be base names, not
# paths.
@ -165,7 +165,11 @@ disable=print-statement,
arguments-differ,
cyclic-import,
bad-super-call,
too-many-statements
too-many-statements,
unused-argument,
import-outside-toplevel,
import-error,
super-with-arguments
# Enable the message, report, category or checker with the given id(s). You can
# 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
output-format=text
# Tells whether to display a full report or only the messages.
reports=no
reports=yes
# Activate the evaluation score.
score=yes