-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
44 lines (43 loc) · 1.33 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
44 lines (43 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
default_install_hook_types:
- pre-commit
- pre-push
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
exclude: '(?x)^(
panko/tests/cases/execute/preprocessor/test_null_directive_at_end_of_file_without_newline\.c
| panko/tests/cases/preprocessor/test_error_function_like_macro_definition_without_closing_paren\.c
| panko/tests/cases/preprocessor/include/split-directive-line/(macro|undef)\.h
)$'
- id: file-contents-sorter
files: \.gitignore
args: ["--unique"]
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: trailing-whitespace
exclude: '\.snap$'
- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
entry: |
cargo fmt
language: system
always_run: true
pass_filenames: false
- id: cargo-clippy
name: cargo clippy
entry: |
cargo clippy --all-targets --profile=clif -- -D warnings -D clippy::dbg_macro
language: system
always_run: true
pass_filenames: false
stages: [pre-push, manual]