add pylint score (#119)
* add pylint score * add sc file * Update build.yml * Update build.yml * Update build.yml * auto load config filepull/12/head
parent
d136001aa6
commit
997f8dd9a9
|
@ -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:
|
||||
|
|
10
.pylintrc
10
.pylintrc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue