-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
97 lines (97 loc) · 2.87 KB
/
.pre-commit-config.yaml
File metadata and controls
97 lines (97 loc) · 2.87 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
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
---
exclude: ^tests/test_data/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: \.json$|\.ipynb$
- id: requirements-txt-fixer
- id: check-added-large-files
args: [--maxkb=1000]
- id: check-toml
- id: check-yaml
- id: name-tests-test
args: [--pytest-test-first]
exclude: ^tests/helpers\.py$
- id: check-merge-conflict
- repo: https://github.com/jsh9/muff-pre-commit
rev: 0.14.5
hooks:
- id: muff-format
args: [--config, muff.toml]
- repo: https://github.com/lyz-code/yamlfix
rev: 1.19.0
hooks:
- id: yamlfix
- repo: https://github.com/pappasam/toml-sort
rev: v0.24.3
hooks:
- id: toml-sort-fix
args:
- --in-place
- --sort-table-keys
- --sort-inline-tables
- --sort-first=name,version,dependencies,requires-python,authors,maintainers
- --trailing-comma-inline-array
- --sort-inline-arrays
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.15.0
hooks:
- id: pretty-format-ini
args: [--autofix]
- repo: https://github.com/hukkin/mdformat
rev: 1.0.0
hooks:
- id: mdformat
args: [--wrap=79, --number]
additional_dependencies: [mdformat-gfm]
- repo: https://github.com/jsh9/format-json
rev: 0.1.2
hooks:
- id: format-json
args:
- --autofix
- --no-ensure-ascii
- --indent=4
- --no-sort-keys
- --no-eof-newline
- repo: https://github.com/jsh9/markdown-heading-numbering
rev: 0.1.0
hooks:
- id: markdown-heading-numbering
exclude: ^CHANGELOG\.md$
- repo: https://github.com/jsh9/markdown-toc-creator
rev: 0.1.3
hooks:
- id: markdown-toc-creator
exclude: ^AGENTS\.md$|^CHANGELOG\.md$
- repo: https://github.com/jsh9/format-docstring
rev: 0.2.5
hooks:
- id: format-docstring
name: Format docstrings in .py files
args: [--line-length=79]
- id: format-docstring-jupyter
name: Format docstrings in .ipynb files
args: [--line-length=79]
- repo: https://github.com/jsh9/blank-line-after-blocks
rev: 0.1.4
hooks:
- id: blank-line-after-blocks
args: [--exclude, r"tests/test_data|_generated\.py$"]
- repo: local
hooks:
- id: copy_readme
name: copy_readme
entry: python .pre_commit_helper_scripts/copy_readme.py
language: system
types: [python]
- repo: local
hooks:
- id: check_full_diff_in_changelog
name: Check "full diff" exists in CHANGELOG.md
entry: python .pre_commit_helper_scripts/check_full_diff_in_changelog.py
language: python
additional_dependencies: [markdown-it-py]