-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
38 lines (34 loc) · 1.11 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
38 lines (34 loc) · 1.11 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
# Run before every commit. Install with: `pre-commit install`.
# Run on entire tree with: `pre-commit run --all-files`.
# All hook configs (line length, ignored rules, etc.) live in pyproject.toml.
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-json
- id: check-merge-conflict
- id: check-added-large-files
args: ["--maxkb=1024"]
- id: mixed-line-ending
args: ["--fix=lf"]
- id: detect-private-key
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.7
hooks:
- id: ruff
args: ["--fix"]
- id: ruff-format
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
args: ["-L", "ans,nd,te,thi,fro,ot,matric"] # "matric potential" is a real term in unsaturated porous-media physics
exclude: "^(assets|notebooks|week9_brief_latex\\.html)/"
ci:
autofix_prs: true
autoupdate_schedule: monthly
skip: []