add lint & test tools
This commit is contained in:
parent
06c323ab91
commit
1b4fad929c
3 changed files with 577 additions and 48 deletions
|
|
@ -6,6 +6,7 @@ if [ "${1:-}" = '--fix' ]; then
|
|||
--remove-unused-variables \
|
||||
--remove-all-unused-imports \
|
||||
--ignore-init-module-imports \
|
||||
--ignore-pass-after-docstring \
|
||||
--recursive \
|
||||
--in-place \
|
||||
.
|
||||
|
|
@ -13,13 +14,17 @@ if [ "${1:-}" = '--fix' ]; then
|
|||
black .
|
||||
else
|
||||
autoflake \
|
||||
--quiet \
|
||||
--remove-duplicate-keys \
|
||||
--remove-unused-variables \
|
||||
--remove-all-unused-imports \
|
||||
--ignore-init-module-imports \
|
||||
--ignore-pass-after-docstring \
|
||||
--recursive \
|
||||
--check \
|
||||
.
|
||||
isort --profile black --check .
|
||||
black --check .
|
||||
interrogate -v .
|
||||
mypy --exclude tests .
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue