wip
This commit is contained in:
commit
01a96c14d4
18 changed files with 2108 additions and 0 deletions
25
scripts/lint
Executable file
25
scripts/lint
Executable file
|
|
@ -0,0 +1,25 @@
|
|||
#!/bin/sh -eu
|
||||
|
||||
if [ "${1:-}" = '--fix' ]; then
|
||||
autoflake \
|
||||
--remove-duplicate-keys \
|
||||
--remove-unused-variables \
|
||||
--remove-all-unused-imports \
|
||||
--ignore-init-module-imports \
|
||||
--recursive \
|
||||
--in-place \
|
||||
.
|
||||
isort --profile black .
|
||||
black .
|
||||
else
|
||||
autoflake \
|
||||
--remove-duplicate-keys \
|
||||
--remove-unused-variables \
|
||||
--remove-all-unused-imports \
|
||||
--ignore-init-module-imports \
|
||||
--recursive \
|
||||
--check \
|
||||
.
|
||||
isort --profile black --check .
|
||||
black --check .
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue