diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ace87149ba6077a6b51c065875c84a12d463655f..0d32ad04fd318c364b39ccbf5cfab5fa2dde3841 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/custom_linter.sh b/custom_linter.sh new file mode 100755 index 0000000000000000000000000000000000000000..3d4ca3f218f2741a4578b8781c3c40e70b386c03 --- /dev/null +++ b/custom_linter.sh @@ -0,0 +1 @@ +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