forked from mloesch/sickle
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
100 lines (86 loc) · 3.05 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: a6273196190bb0f68caf1dc68073cf62c719f725 # frozen: v2.14.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '2']
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: e2dde74d0702d15f4f43e4f4fb93e301b4bc1e30 # frozen: 0.29.1
hooks:
- id: check-dependabot
- id: check-github-workflows
- repo: https://github.com/tox-dev/pyproject-fmt
rev: 605ba23143facfe85233309cc9826b5b3d0fc528 # frozen: 2.2.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]==v3.0.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 8b5112a3b2ad121439a2092f8ff548c0d80f2514 # frozen: v0.6.1
hooks:
- id: ruff
args: [--fix, --show-fixes, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: a22ad011a66f01f475842c80a05243a33679422d # frozen: v1.11.1
hooks:
- id: mypy
args: [--config-file=pyproject.toml]
additional_dependencies:
- httpx==0.27.0
- lxml-stubs==0.5.1
exclude: tests
- repo: https://github.com/scientific-python/cookie
rev: 35368e874265d105e1ca3355df7ef51bbca8eba6 # frozen: 2024.08.19
hooks:
- id: sp-repo-review
- repo: https://github.com/crate-ci/typos
rev: cc99b94246254c1b3dfa6ea6111aa212b814a486 # frozen: v1.23.6
hooks:
- id: typos
args: [--force-exclude]
exclude: CHANGELOG.md # the commit hashes in changelog trigger the spell checker
- repo: https://github.com/FHPythonUtils/LicenseCheck/
rev: b2b50f4d40c95b15478279a7a00553a1dc2925ef # frozen: 2024.2
hooks:
- id: licensecheck
- repo: https://github.com/compilerla/conventional-pre-commit
rev: 8dc49e5ea0cab89785161620aa22a26f263661ca # frozen: v3.4.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]