diff --git a/.woodpecker/tests.yml b/.woodpecker/tests.yml index 30651e9..ab9e557 100644 --- a/.woodpecker/tests.yml +++ b/.woodpecker/tests.yml @@ -31,6 +31,14 @@ pipeline: commands: - isort --check-only --diff . + # check unused and missing imports + test-autoflake: + image: cr.44net.ch/ci-plugins/tests + pull: true + commands: + - autoflake --remove-all-unused-imports -r -v mangadlp/ + - autoflake --check --remove-all-unused-imports -r -v mangadlp/ + # check static typing - python test-mypy: image: cr.44net.ch/ci-plugins/tests diff --git a/contrib/requirements_dev.txt b/contrib/requirements_dev.txt index af5b4d3..4b3cefb 100644 --- a/contrib/requirements_dev.txt +++ b/contrib/requirements_dev.txt @@ -11,3 +11,4 @@ pylint>=2.13.0 mypy>=0.940 tox>=3.24.5 hatch>=1.0.0 +autoflake>=1.4