-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
69 lines (68 loc) · 2.26 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
69 lines (68 loc) · 2.26 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
ci:
autoupdate_schedule: monthly
# GitHub Actions runs the Rust hooks with the repository toolchain.
skip: [cargo-fmt, cargo-clippy]
repos:
- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
language: system
entry: cargo fmt --all --check --
types: [rust]
pass_filenames: false
- id: cargo-clippy
name: cargo clippy
language: system
entry: cargo clippy --target-dir .tox/pre-commit-target --workspace --all-targets --all-features -- -D warnings
types: [rust]
pass_filenames: false
- id: docs-no-credential-argv
name: documentation credentials stay out of argv
language: pygrep
entry: '(?m)^(?:\s*(?:\$\s*)?(?:(?:docker|podman)\s+login|crane\s+auth\s+login|twine\s+upload|uv\s+(?:auth\s+login|publish))\b[^\n]*[ \t](?:-p|--password)(?:[= \t]|$)|\s+(?:-u|--username)(?:[= \t])\S+[ \t]+(?:-p|--password)(?:[= \t]|$))'
types: [markdown]
- repo: https://github.com/hukkin/mdformat
rev: 1.0.0
hooks:
- id: mdformat
additional_dependencies:
- mdformat-gfm>=1
- mdformat-gfm-alerts>=2
- mdformat-footnote>=0.1.3
- mdformat-deflist>=0.1.4
- mdformat-simple-breaks>=0.1
- mdformat-toc>=0.5
- mdformat-config>=0.2.1
- mdformat-web>=0.2
- mdformat-rustfmt>=0.0.3
- mdformat-zola>=1
- mdformat-ruff>=0.1.3
- ruff>=0.16.2
args: ["--wrap", "120"]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.38.0
hooks:
- id: check-github-workflows
args: ["--verbose"]
- repo: https://github.com/codespell-project/codespell
rev: v2.4.3
hooks:
- id: codespell
exclude: ^site/static/diagrams/
args:
- --ignore-words-list=ser,unparseable,atleast,wronly,fpr
- --ignore-words=site/.codespell-ignore-words.txt
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.29.0
hooks:
- id: zizmor
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace