-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJustfile
61 lines (46 loc) · 1.23 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
set dotenv-load := true
set unstable := true
mod docs ".just/documentation.just"
mod project ".just/project.just"
[private]
default:
@just --list --list-submodules
[private]
cog:
uv run --with cogapp cog -r CONTRIBUTING.md
[private]
fmt:
@just --fmt
@just docs fmt
[private]
nox SESSION *ARGS:
uv run nox --session "{{ SESSION }}" -- "{{ ARGS }}"
bootstrap:
uv python install
uv sync --locked
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=["django_github_app"])
execute_from_command_line(sys.argv + "{{ COMMAND }}".split(" "))
test *ARGS:
@just nox test {{ ARGS }}
testall *ARGS:
@just nox tests {{ ARGS }}
types *ARGS:
@just nox types {{ ARGS }}