forked from danielfrg/mkdocs-jupyter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
77 lines (62 loc) · 1.2 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: "3"
env:
PYTEST_K: ""
tasks:
build:
cmds:
- rye build
check:
ignore_error: true
cmds:
- isort . --check-only --diff
- black . --check
- ruff check mkdocs_jupyter
- flake8
fmt:
ignore_error: true
cmds:
- isort .
- black .
- ruff check --fix mkdocs_jupyter
test:
cmds:
- pytest -k "{{.PYTEST_K}}"
test:all:
cmds:
- pytest .
report:
cmds:
- coverage xml
- coverage html
publish:
cmds:
- rye publish
py:clean:
cmds:
- rm -rf .pytest_cache dist htmlcov test-results .ruff_cache
- rm -f .coverage coverage.xml
- find . -type f -name '*.py[co]' -delete
- find . -type d -name __pycache__ -exec rm -rf {} +
- find . -type d -name .ipynb_checkpoints -exec rm -rf {} +
docs:build:
dir: demo
cmds:
- mkdocs build
# ------------------------------------------------------------------------------
# Javascript
js:install:
dir: js
cmds:
- pnpm install
js:build:
dir: js
cmds:
- pnpm run build
js:dev:
dir: js
cmds:
- pnpm run dev
js:clean:
dir: js
cmds:
- pnpm run clean