forked from scipy-lectures/scientific-python-lectures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
52 lines (46 loc) · 1.66 KB
/
.pre-commit-config.yaml
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
48
49
50
51
52
# Install pre-commit hooks via
# pre-commit install
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 2c9f875913ee60ca25ce70243dc24d5b6415598c # frozen: v4.6.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-builtin-literals
- id: check-case-conflict
- id: check-json
- id: check-toml
- id: check-yaml
args: [--allow-multiple-documents]
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-prettier
rev: ffb6a759a979008c0e6dff86e39f4745a2d9eac4 # frozen: v3.1.0
hooks:
- id: prettier
files: \.(md|rst|yml|yaml)
args: [--prose-wrap=preserve]
- repo: https://github.com/MarcoGorelli/cython-lint
rev: 9247866fce7128f2c0eaf4a09f437880397d4689 # frozen: v0.16.2
hooks:
- id: cython-lint
args: [--no-pycodestyle, --max-line-length=88]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: f6793c73d53e659efecf3b3c38d122fb6a2a969f # frozen: v0.5.1
hooks:
- id: ruff
args: ["--fix", "--show-fixes", "--exit-non-zero-on-fix"]
- id: ruff-format
- repo: https://github.com/codespell-project/codespell
rev: 193cd7d27cd571f79358af09a8fb8997e54f8fff # frozen: v2.3.0
hooks:
- id: codespell
args: ["-w", "-L", "ans,nd,sav,mke,ags,mot,coo,whos,manuel"]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: 3a6eb0fadf60b3cccfd80bad9dbb6fae7e47b316 # frozen: v1.10.0
hooks:
# - id: rst-backticks
- id: rst-directive-colons
- id: rst-inline-touching-normal