forked from RealOrangeOne/django-tasks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
34 lines (26 loc) · 1017 Bytes
/
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
# Recipes
@default:
just --list
test *ARGS:
python -m manage check
python -m manage makemigrations --dry-run --check --noinput
python -m coverage run --source=django_tasks -m manage test --shuffle --noinput {{ ARGS }}
python -m coverage report
python -m coverage html
format:
python -m ruff check django_tasks tests --fix
python -m ruff format django_tasks tests
lint:
python -m ruff check django_tasks tests
python -m ruff format django_tasks tests --check
python -m mypy django_tasks tests
start-dbs:
docker-compose pull
docker-compose up -d
test-sqlite *ARGS:
python -m manage test --shuffle --noinput {{ ARGS }}
test-postgres *ARGS:
DATABASE_URL=postgres://postgres:postgres@localhost:15432/postgres python -m manage test --shuffle --noinput {{ ARGS }}
test-mysql *ARGS:
DATABASE_URL=mysql://root:[email protected]:13306/django python -m manage test --shuffle --noinput {{ ARGS }}
test-dbs *ARGS: start-dbs test-postgres test-mysql test-sqlite