1
0
mirror of https://github.com/j178/prek.git synced 2026-04-03 17:34:03 +02:00
Files
prek/mise.toml
Jo 473ca4a188 Update language support status (#970)
* Update language support status

* Tweak
2025-10-26 18:25:43 +08:00

61 lines
1.7 KiB
TOML

[settings]
cargo.binstall = true
[tools]
# We need cargo-binstall so that Mise would download "cargo:" tools instead of building them.
cargo-binstall = "latest"
# For snapshot testing
cargo-insta = "latest"
"cargo:cargo-nextest" = "latest"
# For pre-commit hooks
prek = "latest"
# Toolchains used in the integration tests.
python = ["3.12"]
node = ["20"]
go = ["1.24"]
[tasks.lint]
description = "Run formatting and linting"
run = [
"cargo fmt",
"cargo clippy --all-targets --all-features --workspace -- -D warnings"
]
[tasks.test-unit]
description = "Run unit tests with insta review"
run = "cargo insta test --review --bin prek -- {{arg(name='filter')}}"
[tasks.test-all-unit]
description = "Run all unit tests with insta review"
run = "cargo insta test --review --workspace --lib --bins"
[tasks.test-integration]
description = "Run specific integration test with insta review"
run = "cargo insta test --review --test {{arg(name='test')}} -- {{arg(name='filter')}}"
[tasks.test-all-integration]
description = "Run all integration tests with insta review"
run = "cargo insta test --review --test '*'"
[tasks.test]
description = "Run all tests"
run = "cargo test --all-targets --all-features --workspace"
[tasks.generate]
description = "Generate CLI reference"
run = "cargo test --bin prek cli::tests::generate_cli_reference -- --exact"
env = { PREK_GENERATE = "1" }
[tasks.build-docs]
description = "Build documentation"
run = "uv tool run --with-requirements docs/requirements.txt mkdocs serve"
[tasks.release]
description = "Prepare for a release"
run = """
git checkout -b bump
uvx --from 'rooster @ git+https://github.com/j178/rooster@1b5716e' --python 3.12 -- rooster release
cargo update
"""