Skip to content

Commit

Permalink
add pylint score (open-mmlab#119)
Browse files Browse the repository at this point in the history
* add pylint score

* add sc file

* Update build.yml

* Update build.yml

* Update build.yml

* auto load config file
  • Loading branch information
RunningLeon committed Oct 11, 2021
1 parent d136001 commit 997f8dd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 7 additions & 3 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 997f8dd

Please sign in to comment.