Adopt mise for development workflows
- Lock Python and uv versions with mise - Add unified sync, app, test, lint, format, and typecheck tasks - Update development documentation and strengthen type handling
This commit is contained in:
parent
d04ab6feaf
commit
780d9c12fe
19 changed files with 216 additions and 901 deletions
42
mise.toml
Normal file
42
mise.toml
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
[tools]
|
||||
python = "3.13"
|
||||
uv = "0.12"
|
||||
|
||||
[settings]
|
||||
lockfile = true
|
||||
|
||||
[tool_config]
|
||||
locked = true
|
||||
|
||||
[tasks.sync]
|
||||
description = "Synchronize project dependencies"
|
||||
run = "uv sync"
|
||||
|
||||
[tasks.app]
|
||||
description = "Run the hosts application"
|
||||
run = "uv run hosts"
|
||||
|
||||
[tasks.test]
|
||||
description = "Run the test suite"
|
||||
run = "uv run pytest"
|
||||
raw = true
|
||||
|
||||
[tasks.lint]
|
||||
description = "Check code with Ruff"
|
||||
run = "uv run ruff check ."
|
||||
|
||||
[tasks.format]
|
||||
description = "Format code with Ruff"
|
||||
run = "uv run ruff format ."
|
||||
|
||||
[tasks.format-check]
|
||||
description = "Check formatting with Ruff"
|
||||
run = "uv run ruff format --check ."
|
||||
|
||||
[tasks.typecheck]
|
||||
description = "Type-check the project with ty"
|
||||
run = "uv run ty check"
|
||||
|
||||
[tasks.check]
|
||||
description = "Run the complete validation suite"
|
||||
depends = ["test", "lint", "format-check", "typecheck"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue