diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 65db86320..4dde23fe0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -58,19 +58,21 @@ repos: - id: fmt name: fmt language: system + stages: [push, manual] types: [file, rust] entry: cargo fmt pass_filenames: false - id: clippy name: clippy language: system + stages: [push, manual] types: [file, rust] entry: cargo clippy --all-targets --workspace -- -D warnings -Dclippy::dbg_macro # Use -D warnings option to ensure the job fails when encountering warnings pass_filenames: false - id: test name: test language: system - stages: [push] + stages: [push, manual] types: [file, rust] entry: cargo test pass_filenames: false diff --git a/pixi.toml b/pixi.toml index f15846997..6f673c9d3 100644 --- a/pixi.toml +++ b/pixi.toml @@ -52,7 +52,8 @@ typos = ">=1.23.1,<2" [feature.lint.tasks] lint = { depends-on = ["pre-commit-run"] } pre-commit-install = "pre-commit install" -pre-commit-run = "pre-commit run --all" +pre-commit-install-minimal = "pre-commit install -t=pre-commit" +pre-commit-run = "pre-commit run --all-files" toml-format = { cmd = "taplo fmt", env = { RUST_LOG = "warn" } } toml-lint = "taplo lint --verbose **/pixi.toml"