linter config

This commit is contained in:
2022-12-17 12:06:41 +03:00
parent 96b209055a
commit c0400e1e4c
3 changed files with 59 additions and 0 deletions

16
lint.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -e
find . -name "*.py[co]" -o -name __pycache__ -exec rm -rf {} +
#rm -rf .mypy_cache
echo "> isort"
isort --gitignore --settings-file=setup.cfg .
echo "> brunette"
brunette --config=setup.cfg .
echo "> flake8"
flake8 --config=setup.cfg .
echo "> mypy"
mypy --config-file=setup.cfg .
echo "> prettyjson"
python3 -m scripts.prettyjson