-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTaskfile.yml
More file actions
62 lines (50 loc) · 1.27 KB
/
Copy pathTaskfile.yml
File metadata and controls
62 lines (50 loc) · 1.27 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
version: "3"
vars:
SRC_DIR: "openmodels"
tasks:
install:
desc: Install project dependencies
cmds:
- "poetry install --without dev"
install:dev:
desc: Install project dependencies including dev dependencies
cmds:
- "poetry install"
lint:
desc: Run code linters using flake8
cmds:
- "poetry run flake8 {{.SRC_DIR}}"
format:
desc: Format code using black
cmds:
- "poetry run black {{.SRC_DIR}}"
type-check:
desc: Run type checking using mypy
cmds:
- "poetry run mypy {{.SRC_DIR}}"
test:
desc: Run tests using pytest
cmds:
- "poetry run pytest test"
test:cov:
desc: Run tests with coverage report
cmds:
- "poetry run pytest --cov={{.SRC_DIR}} --cov-report=term-missing test"
check:
desc: Run all checks lint, format and type-check
deps:
- lint
- format
- type-check
build:
desc: Build the project
cmds:
- "poetry build"
docs:html-all:
desc: Build the Sphinx documentation (clean + full rebuild)
cmds:
- "poetry run sphinx-build -b html docs docs/_build/html"
docs:serve:
desc: Serve the documentation locally on port 8000
cmds:
- "poetry run python -m http.server 8000 --directory docs/_build/html"