-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
100 lines (86 loc) · 3.04 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# pre-commit
# Ref: https://pre-commit.com/#usage
# ------------------------------------------------------------------------------
# Ref: https://pre-commit.ci/#configuration
ci:
autofix_prs: false
autoupdate_commit_msg: 'build: update pre-commit hooks'
autoupdate_schedule: monthly
skip: [licensecheck] # does not run on pre-commit.ci, due to sqlite error, runs locally
# do not touch the cassette files: these are auto-generated by vcr.py
exclude: \/cassettes\/
repos:
# Ref: https://pre-commit.com/#meta-hooks
- repo: meta
hooks:
- id: check-hooks-apply
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 2c9f875913ee60ca25ce70243dc24d5b6415598c # frozen: v4.6.0
hooks:
- id: check-merge-conflict
- id: check-case-conflict
- id: check-ast
- id: debug-statements
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: name-tests-test
args: [--pytest-test-first]
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: bdf9bad34ed8102dee37a1fabb11ebc40d51063f # frozen: v2.13.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '2']
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: e35bf69a6edaf50c4ba83c0316cdfacaf76806b1 # frozen: 0.28.3
hooks:
- id: check-dependabot
- id: check-github-workflows
- repo: https://github.com/tox-dev/pyproject-fmt
rev: cd3f07b1c620b288cb9173e257ff3edf1a3b4edb # frozen: 2.1.1
hooks:
- id: pyproject-fmt
- repo: https://github.com/executablebooks/mdformat
rev: 08fba30538869a440b5059de90af03e3502e35fb # frozen: 0.7.17
hooks:
- id: mdformat
args: [--number, --wrap=120, --ignore-missing-references]
exclude: CHANGELOG.md|.changelog.md|docs/src/api
additional_dependencies:
- mdformat-mkdocs[recommended]>=v2.0.7
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: f8a3f8c471fb698229face5ed7640a64900b781e # frozen: v0.4.4
hooks:
- id: ruff
args: [--fix, --show-fixes, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: e5ea6670624c24f8321f6328ef3176dbba76db46 # frozen: v1.10.0
hooks:
- id: mypy
args: [--config-file=pyproject.toml]
additional_dependencies:
- httpx>=0.27
- pytest>=8.1
- repo: https://github.com/scientific-python/cookie
rev: 28d1a53da26f9daff6d9a49c50260421ad6d05e0 # frozen: 2024.04.23
hooks:
- id: sp-repo-review
- repo: https://github.com/crate-ci/typos
rev: ee276ae87cb98d65004ebc0096d2c3a210ba9adc # frozen: v1.21.0
hooks:
- id: typos
args: [--force-exclude]
# CHANGELOG.md: the commit hashes in changelog trigger the spell checker
exclude: CHANGELOG.md
- repo: https://github.com/FHPythonUtils/LicenseCheck/
rev: b2b50f4d40c95b15478279a7a00553a1dc2925ef # frozen: 2024.2
hooks:
- id: licensecheck
- repo: https://github.com/compilerla/conventional-pre-commit
rev: 4efeb931d635ed3e57749de4326b752b345c8372 # frozen: v3.2.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]