Commit 51207b60 authored by Ruben ten Hove's avatar Ruben ten Hove
Browse files

Merge branch 'hoverht-master-patch-91633' into 'master'

fix: isort file/folder exclusion

See merge request ci/templates!98
parents e9b36521 b6e8eb06
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -9,8 +9,8 @@ python:isort:
  image: registry.gitlab.com/notno/python-tests
  variables:
    CHECK_PATH: "./${PYTHON_PACKAGE}"
    EXCLUDE: ""  # Files/dirs to ignore. For Django use /migrations/
    EXCLUDE: ""  # Files/dirs to ignore. For Django use 'migrations'
  script:
    - pip install isort
    - isort --check --profile=black --diff --color ${CHECK_PATH} --skip=${EXCLUDE} || (echo "[!] Problems found. Run 'isort --profile=black .' in your source directory to fix these." && exit 1)
    - isort --check --profile=black --diff --color ${CHECK_PATH} --extend-skip=${EXCLUDE} || (echo "[!] Problems found. Run 'isort --profile=black .' in your source directory to fix these." && exit 1)
  needs: []