Skip to content

Commit 1d3bb85

Browse files
committed
chore(makefile): add fmt & lint aliases for ruff-format
These are very commonly used command verbs, so they are nice to as shortcuts, especially for people getting used to the project
1 parent 56032ea commit 1d3bb85

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.PHONY: list up upd build stop down restart make-migrations migrate collectstatic shell logs create-super-user \
22
docker-stop-all create-schema test ruff-check ruff-fix ruff-format load-fixtures pre-commit-install \
33
dev-import-documents dev-quick-install lighthouse dev_update_vector_search docker-shell check make-messages \
4-
compile-messages
4+
compile-messages fmt lint
55

66
list:
77
@echo "Available commands:"
@@ -80,9 +80,13 @@ test:
8080
ruff-check:
8181
@docker compose run --rm web ruff check .
8282

83+
lint: ruff-check
84+
8385
ruff-format:
8486
@docker compose run --rm web ruff format .
8587

88+
fmt: ruff-format
89+
8690
ruff-fix:
8791
@docker compose run --rm web ruff check --fix .
8892

0 commit comments

Comments
 (0)