Commit b6e8eb06 authored by Ruben ten Hove's avatar Ruben ten Hove
Browse files

fix: isort file/folder exclusion

parent e9b36521
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: []