committed by
GitHub
19 changed files with 475 additions and 313 deletions
@ -1,58 +1,60 @@ |
|||||
--- |
--- |
||||
repos: |
repos: |
||||
- repo: https://github.com/pre-commit/pre-commit-hooks |
- repo: https://github.com/pre-commit/pre-commit-hooks |
||||
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # v6.0.0 |
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # v6.0.0 |
||||
hooks: |
hooks: |
||||
- id: check-yaml |
- id: check-yaml |
||||
- id: check-json |
- id: check-json |
||||
- id: check-toml |
- id: check-toml |
||||
- id: mixed-line-ending |
- id: mixed-line-ending |
||||
args: ["--fix=no"] |
args: [ "--fix=no" ] |
||||
- id: end-of-file-fixer |
- id: end-of-file-fixer |
||||
exclude: "(.*js$|.*css$)" |
exclude: "(.*js$|.*css$)" |
||||
- id: check-case-conflict |
- id: check-case-conflict |
||||
- id: check-merge-conflict |
- id: check-merge-conflict |
||||
- id: detect-private-key |
- id: detect-private-key |
||||
- id: check-symlinks |
- id: check-symlinks |
||||
- id: forbid-submodules |
- id: forbid-submodules |
||||
- repo: local |
|
||||
|
# When this version is updated, do not forget to update this in `.github/workflows/typos.yaml` too |
||||
|
- repo: https://github.com/crate-ci/typos |
||||
|
rev: cf5f1c29a8ac336af8568821ec41919923b05a83 # v1.45.1 |
||||
hooks: |
hooks: |
||||
- id: fmt |
- id: typos |
||||
name: fmt |
|
||||
description: Format files with cargo fmt. |
- repo: local |
||||
entry: cargo fmt |
hooks: |
||||
language: system |
- id: fmt |
||||
always_run: true |
name: fmt |
||||
pass_filenames: false |
description: Format files with cargo fmt. |
||||
args: ["--", "--check"] |
entry: cargo fmt |
||||
- id: cargo-test |
language: system |
||||
name: cargo test |
always_run: true |
||||
description: Test the package for errors. |
pass_filenames: false |
||||
entry: cargo test |
args: [ "--", "--check" ] |
||||
language: system |
- id: cargo-test |
||||
args: ["--features", "sqlite,mysql,postgresql", "--"] |
name: cargo test |
||||
types_or: [rust, file] |
description: Test the package for errors. |
||||
files: (Cargo.toml|Cargo.lock|rust-toolchain.toml|rustfmt.toml|.*\.rs$) |
entry: cargo test |
||||
pass_filenames: false |
language: system |
||||
- id: cargo-clippy |
args: [ "--features", "sqlite,mysql,postgresql", "--" ] |
||||
name: cargo clippy |
types_or: [ rust, file ] |
||||
description: Lint Rust sources |
files: (Cargo.toml|Cargo.lock|rust-toolchain.toml|rustfmt.toml|.*\.rs$) |
||||
entry: cargo clippy |
pass_filenames: false |
||||
language: system |
- id: cargo-clippy |
||||
args: ["--features", "sqlite,mysql,postgresql", "--", "-D", "warnings"] |
name: cargo clippy |
||||
types_or: [rust, file] |
description: Lint Rust sources |
||||
files: (Cargo.toml|Cargo.lock|rust-toolchain.toml|rustfmt.toml|.*\.rs$) |
entry: cargo clippy |
||||
pass_filenames: false |
language: system |
||||
- id: check-docker-templates |
args: [ "--features", "sqlite,mysql,postgresql", "--", "-D", "warnings" ] |
||||
name: check docker templates |
types_or: [ rust, file ] |
||||
description: Check if the Docker templates are updated |
files: (Cargo.toml|Cargo.lock|rust-toolchain.toml|rustfmt.toml|.*\.rs$) |
||||
language: system |
pass_filenames: false |
||||
entry: sh |
- id: check-docker-templates |
||||
args: |
name: check docker templates |
||||
- "-c" |
description: Check if the Docker templates are updated |
||||
- "cd docker && make" |
language: system |
||||
# When this version is updated, do not forget to update this in `.github/workflows/typos.yaml` too |
entry: sh |
||||
- repo: https://github.com/crate-ci/typos |
args: |
||||
rev: 631208b7aac2daa8b707f55e7331f9112b0e062d # v1.44.0 |
- "-c" |
||||
hooks: |
- "cd docker && make" |
||||
- id: typos |
|
||||
|
|||||
File diff suppressed because it is too large
@ -1,4 +1,4 @@ |
|||||
[toolchain] |
[toolchain] |
||||
channel = "1.94.1" |
channel = "1.95.0" |
||||
components = [ "rustfmt", "clippy" ] |
components = [ "rustfmt", "clippy" ] |
||||
profile = "minimal" |
profile = "minimal" |
||||
|
|||||
Loading…
Reference in new issue