-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjustfile
62 lines (47 loc) · 1.16 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
58
59
60
61
62
default:
@just --list
setup-venv:
uv sync
reset-venv:
rm -rf .venv
just setup-venv
bootstrap: setup-venv
source ~/.nvm/nvm.sh
npm install
.venv/bin/python manage.py migrate
.venv/bin/python manage.py createsuperuser
pre-commit install
update-venv:
just reset-venv
shell:
.venv/bin/python manage.py shell
# Run all the tests (other than front-end Playwright) as fast as possible
pytest:
pytest -n auto config/tests
playwright:
npx playwright test
# Update all Python packages
update-packages:
uv sync --upgrade
# Update a single package
update-a-package package:
uv sync --upgrade-package {{ package }}
# Update Python and Node stuff
update: update-packages
npm update
npm outdated
build-static-files:
.venv/bin/python manage.py collectstatic --noinput
generate-django-key:
#!./.venv/bin/python
from django.core.management.utils import get_random_secret_key
print(get_random_secret_key())
# Run the coverage report
coverage:
.venv/bin/pytest -n auto --cov=core --cov-report=html
# Open the coverage report in Firefox
coverage-html:
open -a firefox -g `pwd`/htmlcov/index.html
dev:
source .venv/bin/activate
npm run dev