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

Update .gitlab-ci.yml to have pylint ignore Files.

parent 41698e0d
No related branches found
No related tags found
No related merge requests found
...@@ -60,14 +60,16 @@ pylint: ...@@ -60,14 +60,16 @@ pylint:
- pip install pylint-django - pip install pylint-django
- pip install -r requirements.txt - pip install -r requirements.txt
script: script:
- pylint --exit-zero --output-format=text $(find -type f -name "*.py" ! -path "**/.venv/**") | tee /tmp/pylint.txt #Due to Problems with Pylint, Ignored Files need to be presented here for now.
- sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' /tmp/pylint.txt > public/badges/$CI_JOB_NAME.score - git ls-files | grep -v 'migrations\|manage.py\|course_scraper' | grep -E '.py$' | xargs pylint --load-plugins=pylint_django
- pylint --exit-zero --output-format=pylint_gitlab.GitlabCodeClimateReporter $(find -type f -name "*.py" ! -path "**/.venv/**") > codeclimate.json # - pylint --exit-zero --output-format=text $(find -type f -name "*.py" ! -path "**/.venv/**") | tee /tmp/pylint.txt
- pylint --exit-zero --output-format=pylint_gitlab.GitlabPagesHtmlReporter $(find -type f -name "*.py" ! -path "**/.venv/**") > public/lint/index.html # - sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' /tmp/pylint.txt > public/badges/$CI_JOB_NAME.score
after_script: # - pylint --exit-zero --output-format=pylint_gitlab.GitlabCodeClimateReporter $(find -type f -name "*.py" ! -path "**/.venv/**") > codeclimate.json
- anybadge --overwrite --label $CI_JOB_NAME --value=$(cat public/badges/$CI_JOB_NAME.score) --file=public/badges/$CI_JOB_NAME.svg 4=red 6=orange 8=yellow 10=green # - pylint --exit-zero --output-format=pylint_gitlab.GitlabPagesHtmlReporter $(find -type f -name "*.py" ! -path "**/.venv/**") > public/lint/index.html
- | # after_script:
echo "Your score is: $(cat public/badges/$CI_JOB_NAME.score)" # - anybadge --overwrite --label $CI_JOB_NAME --value=$(cat public/badges/$CI_JOB_NAME.score) --file=public/badges/$CI_JOB_NAME.svg 4=red 6=orange 8=yellow 10=green
# - |
# echo "Your score is: $(cat public/badges/$CI_JOB_NAME.score)"
artifacts: artifacts:
paths: paths:
- public - public
......
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