-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTaskfile.yml
46 lines (38 loc) · 1.14 KB
/
Taskfile.yml
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
version: '3'
tasks:
clean:
desc: clean up
cmds:
- find . -type d -name .pytest_cache -exec rm -rf {} \; || true
- find . -type d -name __pycache__ -exec rm -rf {} \; || true
- find . -type d -name .ten -exec rm -rf {} \; || true
- find . -name .coverage -exec rm -f {} \; || true
test:
desc: run tests
cmds:
- ./tests/bin/start {{ .CLI_ARGS }}
install:
desc: install dependencies
cmds:
- tman install --standalone
- pip install -r requirements.txt
- pip install -r tests/requirements.txt
lint:
desc: lint codes
env:
PYTHONPATH: "{{.USER_WORKING_DIR}}/.ten/app/ten_packages/system/ten_runtime_python/lib:{{.USER_WORKING_DIR}}/.ten/app/ten_packages/system/ten_runtime_python/interface"
cmds:
- pylint ./ --disable=C --disable=W0718 {{ .CLI_ARGS }} || pylint-exit --warn-fail --error-fail $?
format:
desc: format python code
cmds:
- black . {{ .CLI_ARGS }}
format-check:
desc: check code formatting
internal: true
cmds:
- black --check . {{ .CLI_ARGS }}
check:
desc: check code
cmds:
- task: format-check