File: justfile

package info (click to toggle)
python-django-tasks-db 0.12.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 344 kB
  • sloc: python: 2,227; sh: 5; makefile: 4
file content (36 lines) | stat: -rw-r--r-- 1,117 bytes parent folder | download
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
# 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_db -m manage test --shuffle --noinput {{ ARGS }}
    python -m coverage report
    python -m coverage html

test-fast *ARGS:
    python -m manage test --shuffle --noinput --settings tests.settings_fast {{ ARGS }}

format:
    python -m ruff check django_tasks_db tests --fix
    python -m ruff format django_tasks_db tests

lint:
    python -m ruff check django_tasks_db tests
    python -m ruff format django_tasks_db tests --check
    python -m mypy django_tasks_db tests

start-dbs:
    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:django@127.0.0.1:13306/django python -m manage test --shuffle --noinput {{ ARGS }}

test-dbs *ARGS: start-dbs test-postgres test-mysql test-sqlite