add Ruff as linter

This commit is contained in:
ducklet 2023-04-15 16:55:56 +02:00
parent d49a241c0c
commit ce525f2c7c
3 changed files with 49 additions and 2 deletions

View file

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