-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathTaskfile.yml
More file actions
28 lines (24 loc) · 840 Bytes
/
Taskfile.yml
File metadata and controls
28 lines (24 loc) · 840 Bytes
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
version: '3'
vars:
DOCS_BUILD_DIR: build/docs
tasks:
dev_setup:
desc: "Setup development environment"
preconditions:
- sh: command -v poetry
msg: "Poetry is not installed. Please install it from https://python-poetry.org/docs/#installation"
cmds:
- poetry install
- poetry run pre-commit install
build_docs:
desc: "Build documentation"
cmds:
- poetry run pdoc3 -o {{ .DOCS_BUILD_DIR }} --force --template-dir pdoc_tpl --html pyzkaccess {{ .CLI_ARGS }}
lint:
desc: "Run linters"
cmds:
- poetry run pylint --rcfile pyproject.toml .
- poetry run mypy --config-file pyproject.toml .
- poetry run black --config pyproject.toml --check .
- poetry run flake8 --toml-config pyproject.toml .
- poetry run isort --settings pyproject.toml --check .