-
Notifications
You must be signed in to change notification settings - Fork 25
/
Taskfile.yml
53 lines (45 loc) · 1.04 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
47
48
49
50
51
52
53
version: "3"
vars:
APP: aiomoex
TESTS: tests
PYTHON: 3.12
TOOLS: go-task rye
tasks:
default:
desc: List available tasks
cmds:
- task -l
setup:
desc: Setup venv, install tools and dependencies
cmds:
- brew install {{.TOOLS}}
- rye pin --relaxed {{.PYTHON}}
- rye sync --update-all --all-features --no-lock --force
update:
desc: Upgrade tools and dependencies
cmds:
- brew upgrade {{.TOOLS}}
- rye pin --relaxed {{.PYTHON}}
- rye sync --update-all --all-features
lint:
desc: Format and lint
cmds:
- rye run ruff format {{.APP}}
- rye run ruff format {{.TESTS}}
- rye run ruff {{.APP}} --unsafe-fixes
- rye run pyright {{.APP}}
test:
desc: Lint and test
deps: [lint]
cmds:
- rye run pytest {{.TESTS}} --cov={{.APP}}
docs:
desc: Update html docs
cmds:
- rye run sphinx-build -M html docs docs/build
publish:
desc: Publish to pypi
deps: [lint, docs]
cmds:
- rye build --clean
- rye publish