Skip to content
Snippets Groups Projects
Commit f2ed0f9e authored by borzechof99's avatar borzechof99 :whale2:
Browse files

Update .gitlab-ci.yml

parent 48383750
No related branches found
No related tags found
No related merge requests found
......@@ -51,11 +51,14 @@ black:
#SOURCE: https://pypi.org/project/pylint-gitlab/
pylint:
image: python:latest
stage: test
before_script:
- python -V
- mkdir -p public/badges public/lint
- echo undefined > public/badges/$CI_JOB_NAME.score
- pip install pylint-gitlab
- pip install -r requirements.txt
script:
- pylint --exit-zero --output-format=text $(find -type f -name "*.py" ! -path "**/.venv/**") | tee /tmp/pylint.txt
- sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' /tmp/pylint.txt > public/badges/$CI_JOB_NAME.score
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment