/
.pre-commit-config.yaml
58 lines (58 loc) · 1.8 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
repos:
- repo: "https://github.com/asottile/pyupgrade"
rev: "v3.13.0"
hooks:
- id: "pyupgrade"
args: ["--py38-plus"]
- repo: "https://github.com/ambv/black"
rev: "23.9.1"
hooks:
- id: "black"
language_version: "python3.9"
- repo: "https://github.com/pycqa/flake8"
rev: "6.1.0"
hooks:
- id: "flake8"
- repo: "https://github.com/pre-commit/mirrors-mypy"
rev: 'v1.5.1'
hooks:
- id: "mypy"
additional_dependencies: ["types-cryptography", "types-requests", "types-PyYAML"]
name: "mypy (client/certgrinder)"
args: ["--strict"]
files: ^client/
- id: "mypy"
additional_dependencies: ["types-cryptography", "types-requests", "types-PyYAML"]
name: "mypy (server/certgrinderd)"
args: ["--strict"]
files: ^server/
- repo: "https://github.com/pre-commit/mirrors-isort"
rev: "v5.10.1"
hooks:
- id: "isort"
- repo: "https://github.com/pycqa/pydocstyle"
rev: "6.3.0"
hooks:
- id: "pydocstyle"
- 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