[DEV] add ruff and remove isort and flake (#300)

* [DEV] add ruff and remove isort and flake
- precommit
- workflow
- Makefile

updated black

* configure black to use default line-length

* reformat to 88 chars line-length

* fix ugly comments
This commit is contained in:
dni ⚡
2023-08-24 09:47:47 +02:00
committed by GitHub
parent 0a5beb75a2
commit 88393fa4c4
26 changed files with 357 additions and 333 deletions

View File

@@ -1,8 +1,8 @@
isort:
poetry run isort --profile black . --skip cashu/nostr
ruff:
poetry run ruff check . --fix
isort-check:
poetry run isort --profile black --check-only . --skip cashu/nostr
ruff-check:
poetry run ruff check .
black:
poetry run black . --exclude cashu/nostr
@@ -13,12 +13,9 @@ black-check:
mypy:
poetry run mypy cashu --ignore-missing
flake8:
poetry run flake8 cashu
format: black ruff
format: isort black
check: isort-check black-check flake8 mypy
check: black-check ruff-check mypy
clean:
rm -r cashu.egg-info/ || true