-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
41 lines (37 loc) · 992 Bytes
/
.pre-commit-config.yaml
File metadata and controls
41 lines (37 loc) · 992 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
30
31
32
33
34
35
36
37
38
39
40
41
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v5.0.0"
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
exclude: .*\.md
- repo: https://github.com/codespell-project/codespell
# Configuration for codespell is in .codespellrc
rev: v2.4.0
hooks:
- id: codespell
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.3
hooks:
# Run the linter.
- id: ruff-check
types_or: [ python, pyi ]
args: [--fix]
# Run the formatter.
- id: ruff-format
types_or: [ python, pyi ]
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.22
hooks:
- id: mdformat
additional_dependencies: [mdformat-myst, mdformat-ruff]
files: (docs/.)
default_language_version:
python: python3.13