-
-
Notifications
You must be signed in to change notification settings - Fork 530
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
27 lines (24 loc) · 837 Bytes
/
.pre-commit-config.yaml
File metadata and controls
27 lines (24 loc) · 837 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
# pre-commit install
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: f71fa2c1f9cf5cb705f73dffe4b21f7c61470ba9 # v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: debug-statements
- id: check-ast
- id: mixed-line-ending
- id: check-yaml
args: [--allow-multiple-documents]
- id: check-added-large-files
- repo: https://github.com/pre-commit/mirrors-prettier
rev: fc260393cc4ec09f8fc0a5ba4437f481c8b55dc1 # frozen: v3.0.3
hooks:
- id: prettier
files: \.(md|rst|toml|yml|yaml)
args: [--prose-wrap=preserve]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 0431f238e57190b696d22a57a87eb3d0b22c0036 # frozen: v0.3.1
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]