Use pylint from the python installation
This commit is contained in:
parent
05527bb18f
commit
f8003bae32
@ -26,7 +26,7 @@ pylint:
|
||||
- pip install pylint-exit anybadge
|
||||
script:
|
||||
- mkdir ./pylint
|
||||
- pylint --output-format=text asyncdb | tee ./pylint/pylint.log || pylint-exit "${?}"
|
||||
- python -m pylint --output-format=text asyncdb | tee ./pylint/pylint.log || pylint-exit "${?}"
|
||||
- PYLINT_SCORE=$(sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' ./pylint/pylint.log)
|
||||
- anybadge --label=Pylint --file=pylint/pylint.svg --value=$PYLINT_SCORE 2=red 4=orange 8=yellow 10=green
|
||||
- echo "Pylint score is "${PYLINT_SCORE}"
|
||||
|
Loading…
Reference in New Issue
Block a user