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

Merge branch '63-feat-pylint-pycln-job-for-flagging-unused-imports' into 'main'

feat: pycln job for flagging unused imports

Closes #63

See merge request just-ci/templates!124
parents 77b46cf6 1c85b4e2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
---
include:
  - local: python/mypy.yml
  - local: python/pycln.yml
  - local: python/pylint.yml
  - local: python/pytest.yml

python/pycln.yml

0 → 100644
+19 −0
Original line number Diff line number Diff line
---
# pycln checks for unused imports
# https://pypi.org/project/pycln/
include:
  - local: python/generic.yml

variables:
  PYCLN_DEFAULT_ARGS: --check --all
  PYCLN_EXTRA_ARGS: ""

python:pycln:
  extends: .python:pre
  variables:
    JOB_PACKAGE: pycln
  script:
    - !reference [".python:pre", script]
    - pycln ${PYCLN_DEFAULT_ARGS} ${PYCLN_EXTRA_ARGS} . || (echo "[!] Problems
      found. Run 'pycln .' in your source directory to fix these." && exit 1)
  needs: []