-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathTaskfile.yaml
60 lines (48 loc) · 1.37 KB
/
Taskfile.yaml
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
version: 3
tasks:
# --------------------------- SETUP ------------------------------------
activate:
desc: Activates the virtual environment in development mode
cmds:
- hatch shell
clean:
desc: Cleans caching, pyc and pycache files
cmds:
- hatch run clean_pyc
- hatch run clean_pycache
build_with_checks:
desc: Builds the project with checks
cmds:
- hatch run build_with_check
lint:
desc: Lints the project
cmds:
- hatch run lint
mypy:
desc: Runs the type checker only, no formatting
cmds:
- hatch run test:check_types
#---------------------------- DOCS -------------------------------
serve:
desc: Runs the documentation in live mode
cmds:
- hatch run docs:serve
# --------------------------- TEST ------------------------------------
test:
desc: Runs the suite tests
env:
ESMERALD_SETTINGS_MODULE: tests.settings.TestSettings
cmds:
- hatch run test:test {{ .ARGS }}
test_man:
desc: Runs the manual tests with more output details and python breakpoints allowed
env:
ESMERALD_SETTINGS_MODULE: tests.settings.TestSettings
cmds:
- hatch run test:test_man {{ .ARGS }}
coverage:
desc: Runs the coverage tests
env:
ESMERALD_SETTINGS_MODULE: tests.settings.TestSettings
cmds:
- hatch run test:coverage {{ .ARGS }}