-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
76 lines (75 loc) · 2.12 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
---
default_language_version:
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-docstring-first
description: Checks for code placed before a docstring.
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
description: Makes sure files end in a newline and only a newline.
- id: mixed-line-ending
description: >-
Replaces mixed line ending automatically with the most frequent line
ending.
- id: pretty-format-json
args: [--autofix, --no-sort-keys]
- id: trailing-whitespace
- repo: https://github.com/jazzband/pip-tools
rev: 6.13.0
hooks:
- id: pip-compile
args: [--no-emit-index-url]
- repo: https://github.com/adrienverge/yamllint
rev: v1.32.0
hooks:
- id: yamllint
types: [file]
# SEE: https://regex101.com/r/ydseiS/4
files: \.(ya?ml(lint)?|cff)$
args: [--strict]
- repo: https://github.com/myint/docformatter
rev: v1.7.1
hooks:
- id: docformatter
name: Autoformat docstrings
args:
- --in-place
- --pre-summary-newline
- --wrap-descriptions=88 # Match black
- --wrap-summaries=88 # Match black
- repo: https://github.com/myint/rstcheck
rev: v6.1.2
hooks:
- id: rstcheck
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black-jupyter
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.272
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.16
hooks:
- id: mdformat
additional_dependencies:
- mdformat-black
- mdformat-footnote
- mdformat-frontmatter
- mdformat-gfm
- mdformat-myst
- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
hooks:
- id: codespell
args:
- --skip
- requirements.in,requirements.txt