Skip to content
Snippets Groups Projects
Commit f710af1c authored by Saralegui Vallejo, Unai's avatar Saralegui Vallejo, Unai
Browse files

Update pylint.yml

parent fa4ecebc
Branches
No related tags found
No related merge requests found
......@@ -6,6 +6,12 @@ pylint:
- docker
script:
- source $VIRTUALENV_NAME/bin/activate
- pip install pylint
- pip install pylint-exit
- pylint -d C0301 $MODULE_FOLDER || pylint-exit $?
- mkdir ./pylint
- pip install pylint pylint-exit anybadge
- pylint -d C0301 --output-format=text $MODULE_FOLDER | 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"
artifacts:
paths:
- ./pylint/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment