From 124461f3e30bc2161d1be91f90f716148d6843c0 Mon Sep 17 00:00:00 2001 From: Ivan Schaller Date: Fri, 15 Jul 2022 14:10:17 +0200 Subject: [PATCH] add autoflake tests --- .woodpecker/tests.yml | 8 ++++++++ contrib/requirements_dev.txt | 1 + 2 files changed, 9 insertions(+) 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