File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Pre-commit
2+
13on :
24 pull_request :
3- push :
45
56jobs :
67 main :
78 runs-on : ubuntu-latest
89 steps :
910 - uses : actions/checkout@v3
11+ - uses : oven-sh/setup-bun@v2
1012 - uses : actions-rust-lang/setup-rust-toolchain@v1
1113 with :
1214 toolchain : 1.81.0
1719 - uses : Swatinem/rust-cache@v2
1820 - uses : pre-commit/action@v3.0.1
1921 - uses : pre-commit-ci/lite-action@v1.0.3
20- if : always()
22+ if : always()
Original file line number Diff line number Diff line change 1+ # See https://pre-commit.com for more information
2+ # See https://pre-commit.com/hooks.html for more hooks
3+ default_language_version :
4+ rust : 1.81.0
5+ repos :
6+ - repo : local
7+ hooks :
8+ - id : cargo-clippy
9+ name : Clippy Fixes
10+ description : Run the Clippy linter on the package.
11+ entry : cargo clippy --fix
12+ language : rust
13+ files : \.rs$
14+ pass_filenames : false
15+ - id : cargo-fmt
16+ name : Cargo Format
17+ description : Run the Formatter
18+ entry : cargo fmt --all
19+ language : rust
20+ files : \.rs$
21+ pass_filenames : false
22+ - repo : https://github.com/pre-commit/pre-commit-hooks
23+ rev : v3.2.0
24+ hooks :
25+ - id : trailing-whitespace
26+ # Can't mess with these files, will break migrations
27+ exclude : ' crates/pipeline-manager/migrations/.*|.*\.patch|.*\.svg'
28+ - repo : local
29+ hooks :
30+ - id : update-openapi
31+ name : Update OpenAPI
32+ entry : cargo run --bin=pipeline-manager -- --dump-openapi
33+ language : system
34+ files : \.rs$
35+ pass_filenames : false
You can’t perform that action at this time.
0 commit comments