-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJustfile
67 lines (52 loc) · 1.46 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
63
64
65
66
67
set dotenv-load := true
set unstable := true
mod copier ".just/copier.just"
mod docker ".just/docker.just"
mod docs ".just/documentation.just"
mod project ".just/project.just"
[private]
default:
@just --list --list-submodules
[private]
diff SHA="HEAD":
#!/usr/bin/env bash
LATEST_TAG=$(git describe --tags --abbrev=0)
GIT_PAGER=cat git diff "$LATEST_TAG"..{{ SHA }} src/
[private]
fmt:
@just --fmt
@just copier fmt
@just docker fmt
@just docs fmt
@just project fmt
[private]
nox SESSION *ARGS:
uv run nox --session "{{ SESSION }}" -- "{{ ARGS }}"
bootstrap:
uv sync --locked --extra hc --extra psycopg --extra relay
coverage *ARGS:
@just nox coverage {{ ARGS }}
lint:
@just nox lint
lock *ARGS:
uv lock {{ ARGS }}
manage *COMMAND:
#!/usr/bin/env python
import sys
try:
from django.conf import settings
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
settings.configure(INSTALLED_APPS=["email_relay"])
execute_from_command_line(sys.argv + "{{ COMMAND }}".split(" "))
mypy *ARGS:
@just nox mypy {{ ARGS }}
test *ARGS:
@just nox test {{ ARGS }}
testall *ARGS:
@just nox tests {{ ARGS }}