-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
47 lines (43 loc) · 1.24 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
47 lines (43 loc) · 1.24 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
# comment / label "pre-commit.ci autofix" to a pull request to manually trigger auto-fixing
ci:
autofix_prs: false
autoupdate_schedule: monthly
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
exclude: '\.(pdb|gro|top|sdf|xml|cif|graphml)$'
- id: check-added-large-files
args: ["--maxkb=4000"]
- id: check-case-conflict
- id: check-symlinks
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: destroyed-symlinks
- id: end-of-file-fixer
exclude: '\.(graphml)$'
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "v2.23.0"
hooks:
- id: pyproject-fmt
args: [--max-supported-python=3.14]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.15
hooks:
# Run the linter.
- id: ruff
args: [--fix ]
# Run the formatter.
- id: ruff-format
- repo: local
hooks:
- id: fmt-rst-codeblocks
name: Format Python code blocks in RST files
entry: python tools/fmt_rst_codeblocks.py
language: python
files: \.rst$
additional_dependencies: [ruff]