-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
89 lines (76 loc) · 1.36 KB
/
Taskfile.yaml
File metadata and controls
89 lines (76 loc) · 1.36 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
# https://taskfile.dev
version: "3"
tasks:
install-poetry:
status:
- which poetry
cmds:
- curl -sSL https://install.python-poetry.org | python3 -
install:
sources:
- pyproject.toml
- poetry.lock
deps:
- install-poetry
cmds:
- poetry install
pytest:
deps:
- install
cmds:
- poetry run pytest {{.CLI_ARGS}}
mypy:
deps:
- install
cmds:
- >
poetry run mypy
--show-traceback
--enable-incomplete-feature=Unpack
{{.CLI_ARGS}}
flake8:
deps:
- install
cmds:
- poetry run flake8 {{.CLI_ARGS}} .
isort:
deps:
- install
cmds:
- poetry run isort {{.CLI_ARGS}} .
poetry-check:
sources:
- pyproject.toml
deps:
- install-poetry
cmds:
- poetry check
pip-check:
sources:
- pyproject.toml
- poetry.lock
deps:
- install
cmds:
- poetry run pip check
format:
desc: run all code formatters
cmds:
- task: isort
lint:
desc: run all linters
cmds:
- task: mypy
- task: flake8
- task: poetry-check
- task: pip-check
test:
desc: run all tests
cmds:
- task: pytest
all:
desc: run all code formatters, linters, and tests
cmds:
- task: format
- task: lint
- task: test