-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathmise.toml
More file actions
47 lines (37 loc) · 1.01 KB
/
mise.toml
File metadata and controls
47 lines (37 loc) · 1.01 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
[tools]
python = "latest"
uv = "latest"
[tasks.ruff]
description = "Run Ruff"
run = "uv format"
[tasks.pymarkdown]
description = "Run PyMarkdownLnt"
run = "uv run pymarkdown fix --list-files ."
[tasks.ty]
description = "Run Ty"
run = "uvx ty check --respect-ignore-files"
[tasks.pytest]
description = "Run Pytest"
run = "uv run pytest"
[tasks.pytest-cov]
description = "Run Pytest with coverage"
run = """
#!/usr/bin/env bash
set -euxo pipefail
uv run pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=gppt tests/ | tee pytest-coverage.txt
"""
[tasks.build]
description = "Build"
run = "uv build"
[tasks.docs]
description = "Generate documentation"
run = "uv run pdoc gppt -o ./docs --docformat google"
[tasks.pyproject-fmt]
description = "Run pyproject-fmt"
run = "uv run pyproject-fmt ./pyproject.toml"
[tasks.pre-commit]
description = "Run checks on pre-commit"
depends = ["ruff", "ty", "pymarkdown", "pyproject-fmt"]
[tasks.ci]
description = "Run CI checks"
depends = ["pre-commit", "pytest-cov"]