add Ruff as linter
This commit is contained in:
parent
d49a241c0c
commit
ce525f2c7c
3 changed files with 49 additions and 2 deletions
|
|
@ -1,10 +1,12 @@
|
|||
#!/bin/sh -eu
|
||||
|
||||
if [ "${1:-}" = '--fix' ]; then
|
||||
ruff check --fix .
|
||||
autoflake --recursive --in-place .
|
||||
isort .
|
||||
black .
|
||||
else
|
||||
ruff check .
|
||||
autoflake --quiet --recursive --check .
|
||||
isort --check .
|
||||
black --check .
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue