mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
add pylint score (#119)
* add pylint score * add sc file * Update build.yml * Update build.yml * Update build.yml * auto load config file
This commit is contained in:
parent
d136001aa6
commit
997f8dd9a9
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@ -27,7 +27,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
pip install interrogate
|
pip install interrogate
|
||||||
interrogate -v --ignore-init-method --ignore-module --ignore-nested-functions --ignore-regex "__repr__" --fail-under 80 mmdeploy
|
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:
|
build_cpu:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
strategy:
|
strategy:
|
||||||
|
10
.pylintrc
10
.pylintrc
@ -6,7 +6,7 @@
|
|||||||
extension-pkg-whitelist=
|
extension-pkg-whitelist=
|
||||||
|
|
||||||
# Specify a score threshold to be exceeded before program exits with error.
|
# 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
|
# Add files or directories to the blacklist. They should be base names, not
|
||||||
# paths.
|
# paths.
|
||||||
@ -165,7 +165,11 @@ disable=print-statement,
|
|||||||
arguments-differ,
|
arguments-differ,
|
||||||
cyclic-import,
|
cyclic-import,
|
||||||
bad-super-call,
|
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
|
# 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
|
# 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
|
output-format=text
|
||||||
|
|
||||||
# Tells whether to display a full report or only the messages.
|
# Tells whether to display a full report or only the messages.
|
||||||
reports=no
|
reports=yes
|
||||||
|
|
||||||
# Activate the evaluation score.
|
# Activate the evaluation score.
|
||||||
score=yes
|
score=yes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user