-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yaml
57 lines (50 loc) · 1.05 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
version: "3"
tasks:
default:
cmds:
- task --list
run:
desc: "{{ .DESC }}"
summary: "{{ .DESC }}"
vars:
DESC: Runs the script to cross-post
cmds:
- source .venv/bin/activate && python -m src
check:
desc: "{{ .DESC }}"
summary: "{{ .DESC }}"
vars:
DESC: Lint and run tests
cmds:
- task: lint
- task: test
lint:
desc: "{{ .DESC }}"
summary: "{{ .DESC }}"
vars:
DESC: Lint the code using ruff
cmds:
- ruff check --fix
- ruff format
test:
desc: "{{ .DESC }}"
summary: "{{ .DESC }}"
vars:
DESC: Runs the tests
cmds:
- pytest
testv:
desc: "{{ .DESC }}"
summary: "{{ .DESC }}"
vars:
DESC: Runs the tests with verbose output
cmds:
- pytest -vv
install:
desc: "{{ .DESC }}"
summary: "{{ .DESC }}"
vars:
DESC: Install the dependencies in a virtual environment, using the tool uv.
cmds:
- uv venv
- source .venv/bin/activate && uv pip install -r pyproject.toml --all-extras