-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
42 lines (42 loc) · 1.49 KB
/
.pre-commit-config.yaml
File metadata and controls
42 lines (42 loc) · 1.49 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
repos:
- repo: "https://github.com/astral-sh/ruff-pre-commit"
rev: "v0.11.10"
hooks:
- id: "ruff"
args: ["--fix"]
- id: "ruff-format"
- repo: "https://github.com/pre-commit/mirrors-mypy"
rev: 'v1.15.0'
hooks:
- id: "mypy"
additional_dependencies: ["types-cryptography", "types-requests", "types-PyYAML", "pydantic-settings", "pytest", "dnspython"]
name: "mypy (client/certgrinder)"
args: ["--strict"]
files: ^client/
- id: "mypy"
additional_dependencies: ["types-cryptography", "types-requests", "types-PyYAML", "pydantic-settings", "pytest"]
name: "mypy (server/certgrinderd)"
args: ["--strict"]
files: ^server/
- repo: "local"
hooks:
- id: "sphinx-build-manpages"
name: "sphinx manpage build"
entry: "make --directory docs/ man"
language: "system"
pass_filenames: False
- id: "sphinx-copy-certgrinder-manpage"
name: "sphinx certgrinder.8 manpage copy"
entry: "cp docs/_build/man/certgrinder.8 client/man/"
language: "system"
pass_filenames: False
- id: "sphinx-copy-certgrinderd-manpage"
name: "sphinx certgrinderd.8 manpage copy"
entry: "cp docs/_build/man/certgrinderd.8 server/man/"
language: "system"
pass_filenames: False
- id: "sphinx-git-add-manpages"
name: "sphinx manpage git add"
entry: "git add client/man server/man"
language: "system"
pass_filenames: False