-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmise.toml
More file actions
53 lines (42 loc) · 1.13 KB
/
Copy pathmise.toml
File metadata and controls
53 lines (42 loc) · 1.13 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
[tools]
python = "latest"
usage = "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"
depends = ["uv-sync"]
[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=sb2n tests/ | tee pytest-coverage.txt
"""
[tasks.build]
description = "Build"
run = "uv build"
[tasks.docs]
description = "Generate documentation"
run = "uv run pdoc sb2n -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"]
[tasks.uv-sync]
description = "Sync UV dependencies"
run = "uv sync --locked"