mirror of
https://github.com/aljazceru/nutshell.git
synced 2026-01-19 00:24:19 +01:00
[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:
15
Makefile
15
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user