-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Taskfile.yaml
91 lines (73 loc) · 2.03 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
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_pyi
- 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 -------------------------------
update_languages:
desc: Updates the local docs with a new language
cmds:
- hatch run docs:update_languages
build:
desc: Builds the documentation
cmds:
- hatch run docs:build
build_lang:
desc: Builds for a givin langage
cmds:
- hatch run docs:build_lang {{ .LANG }}
serve:
desc: Runs the documentation in live mode
cmds:
- hatch run docs:serve
serve_dev:
desc: Runs the documentation in dev mode
cmds:
- hatch run docs:dev
serve_lang:
desc: Runs the documentation in dev mode for a given language
cmds:
- hatch run docs:serve_lang {{ .LANG }}
new_lang:
desc: Creates a new language
cmds:
- hatch run docs:new_lang {{ .LANG }}
# --------------------------- 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 }}