-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.pre-commit-config.yaml
83 lines (82 loc) · 2.91 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0 # must match pyproject.toml
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-json
- id: check-merge-conflict
- id: check-case-conflict
- id: name-tests-test
args: [--pytest-test-first]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.1 # must match pyproject.toml
hooks:
- id: ruff
- id: ruff-format
- repo: https://github.com/adamchainz/blacken-docs
rev: 1.19.1 # must match pyproject.toml
hooks:
- id: blacken-docs
language: python # means renovate will update the `additional_dependencies` for the hook
additional_dependencies: [black==24.10.0]
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
language: python # means renovate will update the `additional_dependencies` for the hook
additional_dependencies: ["tomli"]
- repo: https://github.com/alan-turing-institute/CleverCSV-pre-commit
rev: v0.8.3
hooks:
- id: clevercsv-standardize
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.43.0
hooks:
- id: markdownlint-fix
args: ["--ignore", "stats_website/.snippets"]
- id: markdownlint
args: ["--ignore", "stats_website/.snippets"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
exclude: "^examples/.*"
exclude_types: ["markdown"]
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.23
hooks:
- id: validate-pyproject
- repo: https://github.com/woodruffw/zizmor-pre-commit
rev: v1.0.1
hooks:
- id: zizmor
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.31.0
hooks:
- id: check-github-workflows
- id: check-renovate
language: python # means renovate will update the `additional_dependencies` for the hook
additional_dependencies:
- "json5"
# `actionlint` hook, for verifying correct syntax in GitHub Actions workflows.
- repo: https://github.com/rhysd/actionlint
rev: v1.7.6
hooks:
- id: actionlint
additional_dependencies:
# actionlint has a shellcheck integration which extracts shell scripts in `run:` steps from GitHub Actions
# and checks these with shellcheck. This is arguably its most useful feature,
# but the integration only works if shellcheck is installed
- "github.com/wasilibs/go-shellcheck/cmd/shellcheck@v0.10.0"
- repo: meta
hooks:
- id: check-hooks-apply
ci:
autofix_commit_msg: "[pre-commit.ci] auto fixes from pre-commit.com hooks"
autofix_prs: true
autoupdate_commit_msg: "[pre-commit.ci] pre-commit autoupdate"
autoupdate_schedule: quarterly
submodules: false