Repository navigation
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
90 lines (89 loc) · 2.58 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
90 lines (89 loc) · 2.58 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
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
# SPDX-FileCopyrightText: 2025 Florian Best
# SPDX-License-Identifier: CC0-1.0
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-json
- id: check-xml
- id: check-yaml
- id: check-merge-conflict
- id: pretty-format-json
args:
- --autofix
- --no-ensure-ascii
- id: trailing-whitespace
exclude: "^docs/.*[.]rst$|^.*[.]md$"
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-check-blanket-noqa
- id: python-no-eval
- id: rst-backticks
- id: rst-directive-colons
- id: rst-inline-touching-normal
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.9
hooks:
- id: ruff-format
alias: "ruff-format-check"
args: ["--check", "--diff"]
- id: ruff-format
alias: "ruff-format-fix"
stages: [manual]
- id: ruff-check
alias: "ruff"
- id: ruff-check
alias: "ruff-fix"
stages: [manual]
args: ["--fix"]
- id: ruff-check
alias: "ruff-unsafe-fix"
stages: [manual]
args: ["--fix", "--unsafe-fixes"]
- id: ruff-check
alias: "ruff-unsafe-preview-fix"
stages: [manual]
args: ["--fix", "--unsafe-fixes", "--preview"]
- id: ruff-check
alias: "ruff-statistics"
stages: [manual]
args: ["--statistics"]
- id: ruff-check
alias: "ruff-preview-statistics"
stages: [manual]
args: ["--statistics", "--preview"]
- repo: https://github.com/fsfe/reuse-tool
rev: v6.2.0
hooks:
- id: reuse
alias: reuse-annotate
name: "reuse annotate"
args: ["annotate", "-c", "Florian Best", "-l", "MIT OR Apache-2.0", "--skip-unrecognised", "--skip-existing", "--template", "default"]
pass_filenames: true
description: "Annotate all unlicensed files"
stages: [ manual ]
- id: reuse
alias: reuse-lint
stages: [ manual ]
- id: reuse-lint-file
- id: reuse
alias: reuse-download
args: ["download", "--all"]
stages: [ manual ]
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v4.4.0
hooks:
- id: conventional-pre-commit
stages: [ commit-msg ]
args: ["--strict"]
- repo: https://github.com/astral-sh/ty-pre-commit
rev: v0.0.84
hooks:
- id: ty
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v2.3.1
hooks:
- id: mypy
additional_dependencies: ["lark"]