Commit 53a1b62b authored by Ruben ten Hove's avatar Ruben ten Hove
Browse files

feat: allow global variable override

parent 48191b67
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -8,10 +8,6 @@
include:
  - local: python/generic.yml

variables:
  PYLINT_THRESHOLD: "6"
  PYLINT_EXTRA_ARGS: ""

python:pylint:
  stage: test
  variables:
@@ -19,7 +15,7 @@ python:pylint:
  script:
    - !reference [".python:pre", script]
    - pip3 install . || true # installs package only if available
    - pylint --fail-under ${PYLINT_THRESHOLD} ${PYLINT_EXTRA_ARGS}
    - pylint --fail-under ${PYLINT_THRESHOLD:-6} ${PYLINT_EXTRA_ARGS}
      --output-format=pylint_junit.JUnitReporter:${CI_PROJECT_DIR}/pylint-report.xml,colorized
      --ignore-paths=${PYTHON_EXCLUDE_PATHS} **/*.py
  artifacts:

python/readme.md

0 → 100644
+15 −0
Original line number Diff line number Diff line

## Global variables

You can set the following variables up to and including the group level, so you can customize jobs for all your projects, without needing to modify each project, while still allowing overriding of these variables on the Project level.

## Pylint

### Variables

Defaults.

```yaml
PYLINT_THRESHOLD: "6"
PYLINT_EXTRA_ARGS: ""
```