-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
29 lines (29 loc) · 957 Bytes
/
.pre-commit-config.yaml
File metadata and controls
29 lines (29 loc) · 957 Bytes
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
exclude: '^(?:cpp-linter/tests/.*\.(?:patch|diff))|(?:\.yarn/releases/yarn.*js)'
- id: end-of-file-fixer
exclude: bindings/node/.*package\.json
- id: check-docstring-first
- id: check-added-large-files
exclude: '^\.yarn/releases/yarn.*js|pypi_clang.*\.json$'
- id: check-yaml
exclude: docs/mkdocs.yml
- id: check-toml
- id: mixed-line-ending
exclude: '^\.yarn/releases/yarn.*js'
args: ["--fix=lf"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.9
hooks:
# Run the python linter.
- id: ruff-check
args: [ --fix ]
# Run the python formatter.
- id: ruff-format
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v9.8.0
hooks:
- id: cspell # Spell check changed files