Migrate from Black to Ruff and reformat code with enabling additional linter checks

This commit is contained in:
JRoot Junior 2026-01-04 04:12:25 +02:00
parent a4a3f42c71
commit d0bc165963
No known key found for this signature in database
GPG key ID: 738964250D5FF6E2
214 changed files with 916 additions and 963 deletions

View file

@ -37,15 +37,14 @@ install: clean
.PHONY: lint
lint:
uv run isort --check-only $(code_dir)
uv run black --check --diff $(code_dir)
uv run ruff format --check --diff $(code_dir)
uv run ruff check --show-fixes --preview $(package_dir) $(examples_dir)
uv run mypy $(package_dir)
.PHONY: reformat
reformat:
uv run black $(code_dir)
uv run isort $(code_dir)
uv run ruff format $(code_dir)
uv run ruff check --fix $(code_dir)
# =================================================================================================
# Tests