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

Add Linter as a seperate Script for Ease of Use

parent d89072a9
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,7 @@ pylint:
- pip install -r requirements.txt
script:
#Due to Problems with Pylint, Ignored Files need to be presented here for now.
- git ls-files | grep -v 'migrations\|manage.py\|course_scraper' | grep -E '.py$' | xargs pylint --load-plugins=pylint_django
- ./custom_linter.sh
# - 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
# - pylint --exit-zero --output-format=pylint_gitlab.GitlabCodeClimateReporter $(find -type f -name "*.py" ! -path "**/.venv/**") > codeclimate.json
......
git ls-files | grep -v 'migrations\|manage.py\|course_scraper' | grep -E '.py$' | xargs pylint --load-plugins=pylint_django
\ No newline at end of file
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