-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.pre-commit-config.yaml
42 lines (42 loc) · 1.34 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-json
- id: check-toml
- id: check-yaml
exclude: "mkdocs.yml"
- id: end-of-file-fixer
- id: mixed-line-ending
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.14.1
hooks:
# See https://github.com/pre-commit/mirrors-mypy/blob/main/.pre-commit-hooks.yaml
- id: mypy
types_or: [python, pyi]
args: [--ignore-missing-imports, --scripts-are-modules]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.0
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
# Disabled due to incompatibility with our exception translator facility.
# See https://github.com/jsh9/pydoclint/issues/174
# TODO(nicholasjng): Re-enable once fixed or an ignore facility is available.
# - repo: https://github.com/jsh9/pydoclint
# rev: 0.5.9
# hooks:
# - id: pydoclint
# args: [--check-class-attributes=False]
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.4.27
hooks:
- id: uv-lock
name: Lock project dependencies
- repo: https://github.com/woodruffw/zizmor-pre-commit
rev: v1.0.1
hooks:
- id: zizmor
args: [--min-severity=medium]