-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (30 loc) · 881 Bytes
/
Makefile
File metadata and controls
40 lines (30 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
.PHONY: help install fmt lint test run migrate makemigrations shell precommit
help:
@echo "Targets:"
@echo " install Install deps via Poetry"
@echo " fmt Format code (ruff format)"
@echo " lint Lint (ruff check)"
@echo " test Run tests (pytest)"
@echo " run Run dev server"
@echo " migrate Apply migrations"
@echo " makemigrations Create migrations"
@echo " shell Django shell"
@echo " precommit Install git hooks (pre-commit install)"
install:
poetry install
fmt:
poetry run ruff format .
lint:
poetry run ruff check .
test:
poetry run pytest
run:
poetry run python manage.py runserver
migrate:
poetry run python manage.py migrate
makemigrations:
poetry run python manage.py makemigrations
shell:
poetry run python manage.py shell
precommit:
poetry run pre-commit install