-
Notifications
You must be signed in to change notification settings - Fork 0
/
taskfile.yaml
73 lines (62 loc) · 1.36 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
version: '3'
tasks:
default:
cmds:
- task: install
- task: lint
- task: format
- task: test
sync_lock:
desc: Sync poetry.lock with pyproject.toml
source:
- poetry.lock
cmds:
- poetry lock --no-update
update:
desc: Update dependencies via poetry
source:
- pyproject.toml
cmds:
- poetry update
deps:
- task: sync_lock
install:
desc: Install dependencies via poetry
source:
- pyproject.toml
cmds:
- poetry install --no-root
deps:
- task: sync_lock
compile:
desc: Compile Protobuff schemes to Python
cmds:
- protoc --python_out=./src/ ./schemes/protobuf/*.proto
format:
desc: Format code via isort-black
cmds:
- poetry run black ./src/
lint:
desc: Run linter via ruff
cmds:
- poetry run ruff check --fix ./src/
test:
desc: Run tests via pytest
cmds:
- poetry run pytest -v ./src/tests/
run:
desc: Run the application
cmds:
- poetry run python ./src/main.py
clean:
desc: Cleanup the project
cmds:
- rm -rf .pytest_cache
- rm -rf .ruff_cache
- rm -rf src/__pycache__
- rm -rf src/**/__pycache__
- rm -rf tests/__pycache__
- rm -rf tests/**/__pycache__
- rm -rf src/schemes
- rm -rf .coverage
- rm -rf poetry.lock