Skip to content

Commit

Permalink
chore(makefile): add fmt & lint aliases for ruff-format
Browse files Browse the repository at this point in the history
These are very commonly used command verbs, so they are nice to as shortcuts,
especially for people getting used to the project
  • Loading branch information
Restioson committed Nov 5, 2024
1 parent 56032ea commit 1d3bb85
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.PHONY: list up upd build stop down restart make-migrations migrate collectstatic shell logs create-super-user \
docker-stop-all create-schema test ruff-check ruff-fix ruff-format load-fixtures pre-commit-install \
dev-import-documents dev-quick-install lighthouse dev_update_vector_search docker-shell check make-messages \
compile-messages
compile-messages fmt lint

list:
@echo "Available commands:"
Expand Down Expand Up @@ -80,9 +80,13 @@ test:
ruff-check:
@docker compose run --rm web ruff check .

lint: ruff-check

ruff-format:
@docker compose run --rm web ruff format .

fmt: ruff-format

ruff-fix:
@docker compose run --rm web ruff check --fix .

Expand Down

0 comments on commit 1d3bb85

Please sign in to comment.