[config] skip_core_tasks = true [env] __CARGO_FIX_YOLO=1 REPOSITORY_ROOT = { script = ["git rev-parse --show-superproject-working-tree --show-toplevel"] } [tasks.fix] command = "cargo" args = [ "clippy", "--fix", "--allow-dirty", "--allow-staged" ] [tasks.test] install_crate = { crate_name = "cargo-nextst" } command = "cargo" args = [ "nextest", "run" ] [tasks.lint] command = "cargo" args = [ "clippy", "--", "-D", "warnings" ] [tasks.format] toolchain = "nightly" command = "cargo" args = [ "fmt", "--", "--config-path=${REPOSITORY_ROOT}/.cargo-husky/hooks/rustfmt.toml", "--emit=files" ] [tasks.pretty] dependencies = ["fix", "test", "lint", "format"]