generated from Ash-Crow/django-dsfr-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
57 lines (41 loc) · 1.38 KB
/
justfile
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
set dotenv-load
set shell := ["bash", "-uc"]
uv_run := if env("USE_UV", "false") == "true" { "uv run" } else { "" }
default:
just -l
collectstatic:
{{uv_run}} python manage.py collectstatic --no-input
compilemessages:
{{uv_run}} python manage.py compilemessages --ignore=.venv
coverage app="":
{{uv_run}} coverage run --source='.' manage.py test {{app}}
{{uv_run}} coverage html
firefox htmlcov/index.html
createsuperuser:
{{uv_run}} python manage.py createsuperuser
encode_secrets type="":
{{uv_run}} python manage.py encode_secrets --type {{type}}
makemessages:
{{uv_run}} django-admin makemessages -l fr --ignore=manage.py
alias mm:= makemigrations
makemigrations app="":
{{uv_run}} python manage.py makemigrations {{app}}
alias mi := migrate
migrate app="" version="":
{{uv_run}} python manage.py migrate {{app}} {{version}}
alias checkfiles := quality
quality:
{{uv_run}} pre-commit run --all-files
alias rs := runserver
runserver:
{{uv_run}} python manage.py runserver $HOST_URL:$HOST_PORT
shell:
{{uv_run}} python manage.py {{ if env("DEBUG") == "True" { "shell_plus" } else { "shell" } }}
test app="":
{{uv_run}} python manage.py test {{app}}
update:
{{uv_run}} python manage.py collectstatic --noinput
{{uv_run}} python manage.py migrate
upgrade:
uv lock --upgrade
uv export --no-dev -q -o requirements.txt