-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
123 lines (102 loc) · 2.68 KB
/
Taskfile.yaml
File metadata and controls
123 lines (102 loc) · 2.68 KB
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
version: 3
tasks:
# --------------------------- SETUP ------------------------------------
activate:
desc: Activates the virtual environment in development mode
cmds:
- hatch shell
clean_ruff:
desc: "Remove all .ruff_cache directories"
cmds:
- |
find . \
-type d \
-name ".ruff_cache" \
-exec rm -rf {} +
clean_typing:
desc: "Remove all typing cache directories"
cmds:
- |
find . \
-type d \
-name ".ty_cache" \
-exec rm -rf {} +
clean_pytest:
desc: "Remove all .pytest_cache directories"
cmds:
- |
find . \
-type d \
-name ".pytest_cache" \
-exec rm -rf {} +
clean:
desc: Cleans caching, pyc and pycache files
cmds:
- hatch run clean_pyc
- hatch run clean_pyi
- hatch run clean_pycache
- task clean_ruff
- task clean_typing
- task clean_pytest
build_with_checks:
desc: Builds the project with checks
cmds:
- hatch run build_with_check
lint:
desc: Lints the project
cmds:
- hatch run lint
format:
desc: Formats the project
cmds:
- hatch run format
ty:
desc: Runs the ty type checker only, no formatting
cmds:
- hatch run check_types
#---------------------------- DOCS -------------------------------
docs_prepare:
desc: Prepares documentation sources for Zensical
cmds:
- hatch run docs:prepare
docs_clean:
desc: Cleans generated docs artifacts
cmds:
- hatch run docs:clean
build:
desc: Builds the documentation
cmds:
- hatch run docs:build
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
# --------------------------- TEST ------------------------------------
dashboard:
desc: Starts the dashboard in development mode
env:
ASYNCMQ_SETTINGS_MODULE: asyncmq.contrib.dashboard.development.settings.Settings
cmds:
- hatch run python -m asyncmq.contrib.dashboard.development.run
test:
desc: Runs the suite tests
env:
LILYA_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:
LILYA_SETTINGS_MODULE: tests.settings.TestSettings
cmds:
- hatch run test:test_man {{ .ARGS }}
coverage:
desc: Runs the coverage tests
env:
LILYA_SETTINGS_MODULE: tests.settings.TestSettings
cmds:
- hatch run test:coverage {{ .ARGS }}