|
8 | 8 | @echo " install - Install the package and dependencies" |
9 | 9 | @echo " install-dev - Install the package and dev dependencies" |
10 | 10 | @echo " test - Run tests" |
11 | | - @echo " format - Format code with black" |
| 11 | + @echo " format - Format code with ruff" |
12 | 12 | @echo " lint - Run linting checks" |
13 | 13 | @echo " security - Run security checks with bandit" |
14 | 14 | @echo " docs - Build the documentation" |
@@ -59,24 +59,19 @@ test-trace: install-test |
59 | 59 | $(POETRY) run pytest -k "not kms" -vvv --log-cli-level=DEBUG |
60 | 60 |
|
61 | 61 | format: install-dev |
62 | | - $(POETRY) run black --extend-exclude test-data/gardenlinux . |
| 62 | + $(POETRY) run -c .pre-commit-config.ruff.yaml --all-files |
63 | 63 |
|
64 | 64 | lint: install-dev |
65 | | - @echo |
66 | | - @echo "------------------------------------------------------------------------------------------------------------------------" |
67 | | - @echo "--// BLACK //-----------------------------------------------------------------------------------------------------------" |
68 | | - @echo "------------------------------------------------------------------------------------------------------------------------" |
69 | | - $(POETRY) run black --diff --extend-exclude test-data/gardenlinux . |
70 | 65 | @echo |
71 | 66 | @echo "------------------------------------------------------------------------------------------------------------------------" |
72 | 67 | @echo "--// ISORT //-----------------------------------------------------------------------------------------------------------" |
73 | 68 | @echo "------------------------------------------------------------------------------------------------------------------------" |
74 | 69 | $(POETRY) run isort --check-only . |
75 | 70 | @echo |
76 | 71 | @echo "------------------------------------------------------------------------------------------------------------------------" |
77 | | - @echo "--// PYRIGHT //---------------------------------------------------------------------------------------------------------" |
| 72 | + @echo "--// PRE-COMMIT //------------------------------------------------------------------------------------------------------" |
78 | 73 | @echo "------------------------------------------------------------------------------------------------------------------------" |
79 | | - $(POETRY) run pyright |
| 74 | + $(POETRY) run pre-commit run --all-files |
80 | 75 |
|
81 | 76 | security: install-dev |
82 | 77 | @if [ "$(CI)" = "true" ]; then \ |
|
0 commit comments