-
Notifications
You must be signed in to change notification settings - Fork 341
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
65 lines (58 loc) · 1.88 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
65 lines (58 loc) · 1.88 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
hooks:
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 2eeb5678de71a00c0902cbda7105d328432f72cb # frozen: v0.16.8
hooks:
- id: ruff-check
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/pre-commit/pygrep-hooks
rev: 3a6eb0fadf60b3cccfd80bad9dbb6fae7e47b316 # frozen: v1.10.0
hooks:
- id: rst-backticks
- id: rst-directive-colons
- id: rst-inline-touching-normal
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 7ff8d35ae36a7d2b968f2f90b4c723e292e594ee # frozen: v2.3.1
hooks:
- id: mypy
exclude: '^(docs)'
args: []
additional_dependencies: &type_deps
- hypothesis
- 'nox>=2026.8.17'
- pytest
- tomli
- tomli_w
- 'typing_extensions>=4.16.0'
- httpx
- repo: https://github.com/crate-ci/typos
rev: 512fc24f32f44ab01972217aaaf3dc86ec234d53 # frozen: v1.50.2
hooks:
- id: typos
args: []
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: fa412071e4f5d44d44f9e365f4676f9df92456a2 # frozen: v1.30.1
hooks:
- id: zizmor
files: "^\\.github"
args: [--persona=auditor]
- repo: https://github.com/rhysd/actionlint
rev: 914e7df21a07ef503a81201c76d2b11c789d3fca # frozen: v1.7.12
hooks:
- id: actionlint
- repo: local
hooks:
- id: check-frozen-revs
name: Check frozen pre-commit revs match tags
entry: python tasks/check_frozen_revs.py
language: python
files: ^\.pre-commit-config\.yaml$
additional_dependencies: ['ruamel.yaml']