-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.mise.toml
More file actions
34 lines (26 loc) · 907 Bytes
/
.mise.toml
File metadata and controls
34 lines (26 loc) · 907 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
29
30
31
32
33
34
[tools]
python = "3.10"
[tasks.install]
description = "Install project dependencies"
run = "pip install -e '.[dev]'"
[tasks.analyze]
description = "Analyze a codebase"
run = "python -m code_cartographer analyze -d $1 -o ${2:-output.json}"
[tasks.variants]
description = "Detect code variants"
run = "python -m code_cartographer variants -d $1 --semantic-threshold ${2:-0.8}"
[tasks.serve]
description = "Start Temporal Topography web server"
run = "python -m code_cartographer serve --reload"
[tasks.test]
description = "Run test suite"
run = "pytest"
[tasks.format]
description = "Format code with black and isort"
run = ["black code_cartographer/ tests/", "isort code_cartographer/ tests/"]
[tasks.lint]
description = "Run linters"
run = ["ruff check code_cartographer/ tests/", "mypy code_cartographer/"]
[tasks.pre-commit]
description = "Run pre-commit hooks"
run = "pre-commit run --all-files"