cleanup and speedup runs

This commit is contained in:
Evgenii Alekseev 2021-08-11 04:59:45 +03:00
parent 990d5dda81
commit 83047d8270
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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