From 83047d8270ce287099f73434d7dd012b4e4b1249 Mon Sep 17 00:00:00 2001 From: Evgeniy Alekseev Date: Wed, 11 Aug 2021 04:59:45 +0300 Subject: [PATCH] cleanup and speedup runs --- .pylintrc | 2 +- Makefile | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.pylintrc b/.pylintrc index 90bbe57c..3753ac0d 100644 --- a/.pylintrc +++ b/.pylintrc @@ -22,7 +22,7 @@ ignore-patterns= # Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the # number of processors available to use. -jobs=1 +jobs=0 # Control the amount of potential inferred values when inferring a single # object. This can help the performance when dealing with large functions or diff --git a/Makefile b/Makefile index c32351d3..138afb28 100644 --- a/Makefile +++ b/Makefile @@ -24,10 +24,10 @@ archlinux: archive sed -i "s/pkgver=[0-9.]*/pkgver=$(VERSION)/" package/archlinux/PKGBUILD check: clean mypy - find "src/$(PROJECT)" "tests/$(PROJECT)" -name "*.py" -execdir autopep8 --exit-code --max-line-length 120 -aa -i {} + - cd src && pylint --rcfile=../.pylintrc "$(PROJECT)" - cd src && bandit -c ../.bandit.yml -r "$(PROJECT)" - cd tests && bandit -c ../.bandit-test.yml -r "$(PROJECT)" + autopep8 --exit-code --max-line-length 120 -aa -i -j 0 -r "src/$(PROJECT)" "tests/$(PROJECT)" + pylint --rcfile=.pylintrc "src/$(PROJECT)" + bandit -c .bandit.yml -r "src/$(PROJECT)" + bandit -c .bandit-test.yml -r "tests/$(PROJECT)" clean: find . -type f -name "$(PROJECT)-*-src.tar.xz" -delete @@ -37,7 +37,7 @@ directory: clean mkdir "$(PROJECT)" mypy: - cd src && echo y | mypy --implicit-reexport --strict -p "$(PROJECT)" --install-types || true + cd src && mypy --implicit-reexport --strict -p "$(PROJECT)" --install-types --non-interactive || true cd src && mypy --implicit-reexport --strict -p "$(PROJECT)" push: archlinux