mirror of
https://github.com/j178/prek.git
synced 2026-04-25 02:11:36 +02:00
75 lines
2.1 KiB
TOML
75 lines
2.1 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"
|
|
prek = "latest"
|
|
uv = "latest"
|
|
|
|
[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-cli-reference]
|
|
description = "Generate CLI reference"
|
|
run = "cargo test --bin prek cli::_gen::generate_cli_reference -- --exact"
|
|
env = { PREK_GENERATE = "1" }
|
|
|
|
[tasks.generate-json-schema]
|
|
description = "Generate JSON schema"
|
|
run = "cargo test --bin prek --features schemars schema::_gen::generate_json_schema -- --exact"
|
|
env = { PREK_GENERATE = "1" }
|
|
|
|
[tasks.generate]
|
|
description = "Generate CLI reference and JSON schema"
|
|
run = [{ task = "generate-cli-reference" }, { task = "generate-json-schema" }]
|
|
|
|
[tasks.preview-docs]
|
|
description = "Serve documentation locally"
|
|
run = "uv run --group docs zensical serve"
|
|
|
|
[tasks.build-docs]
|
|
description = "Build documentation"
|
|
run = [
|
|
"uv run --group docs zensical build",
|
|
"uv run --group docs llmstxt-standalone build",
|
|
]
|
|
|
|
[tasks.update-macports]
|
|
description = "Update MacPorts portfile"
|
|
run = "uv run scripts/update-macports-portfile.py"
|
|
|
|
[tasks.release]
|
|
description = "Prepare for a release"
|
|
run = """
|
|
git checkout -b bump
|
|
uv run --group dev rooster release
|
|
"""
|