Commit 111d4902 authored by Ruben ten Hove's avatar Ruben ten Hove
Browse files

Merge branch '71-customizable-path-in-python-pylint' into 'main'

fix: python:pylint accepts customizable path PYLINT_TARGET

Closes #71

See merge request just-ci/templates!139
parents a1667ae7 de2192d4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@ variables:
  PYLINT_THRESHOLD: "6"
  PYLINT_DEFAULT_ARGS: --recursive=y
  PYLINT_EXTRA_ARGS: ""
  PYLINT_TARGET: "."

python:pylint:
  extends: .python:pre-install
@@ -23,7 +24,7 @@ python:pylint:
    - pylint --fail-under=${PYLINT_THRESHOLD} ${PYLINT_DEFAULT_ARGS}
      ${PYLINT_EXTRA_ARGS}
      --output-format=pylint_junit.JUnitReporter:${CI_PROJECT_DIR}/pylint-report.xml,pylint_gitlab.GitlabCodeClimateReporter:${CI_PROJECT_DIR}/code-climate.json,colorized
      --ignore-paths=${PYTHON_EXCLUDE_PATHS} .
      --ignore-paths=${PYTHON_EXCLUDE_PATHS} ${PYLINT_TARGET:-.}
  artifacts:
    reports:
      junit: pylint-report.xml