From 8e132d658e7226c3a1fe36d51cf8998125194fbe Mon Sep 17 00:00:00 2001 From: sebthom Date: Wed, 16 Feb 2022 20:54:30 +0100 Subject: [PATCH] improve lint config --- .github/workflows/build.yml | 2 -- pyproject.toml | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cedc3fe..903b6d0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -74,8 +74,6 @@ jobs: pdm run lint - pdm run autopep8 -v --exit-code --recursive --diff kleinanzeigen_bot tests - - name: run unit tests run: | pdm run utest diff --git a/pyproject.toml b/pyproject.toml index 3332fc9..712b0c5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -70,7 +70,7 @@ dev = [ app = "python -m kleinanzeigen_bot" compile = "python -O -m PyInstaller pyinstaller.spec --clean" format = "autopep8 --recursive --in-place kleinanzeigen_bot tests" -lint = "pylint -v kleinanzeigen_bot tests" +lint = {shell = "pylint -v kleinanzeigen_bot tests && autopep8 -v --exit-code --recursive --diff kleinanzeigen_bot tests"} scan = "bandit -c pyproject.toml -r kleinanzeigen_bot" test = "python -m pytest --capture=tee-sys -v" utest = "python -m pytest --capture=tee-sys -v -m 'not itest'"