forked from fedora-infra/bodhi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
34 lines (32 loc) · 940 Bytes
/
.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
default_language_version:
python: python3.12
repos:
- repo: https://github.com/pycqa/flake8
rev: 7.1.0
hooks:
- id: flake8
args: ['--config=setup.cfg']
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.10.0"
hooks:
- id: mypy
args: []
additional_dependencies: ["types-requests", "types-click"]
files: |
(?x)^(
bodhi-client/bodhi/client/bindings.py|
bodhi-messages/bodhi/messages/.*|
bodhi-server/bodhi/server/bugs.py|
bodhi-server/bodhi/server/buildsys.py|
devel/ci/bodhi_ci/.*
)$
- repo: https://github.com/PyCQA/pydocstyle
rev: 6.3.0
hooks:
- id: pydocstyle
files: '^bodhi-\w+/bodhi/'
additional_dependencies: ["toml"]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.4.9'
hooks:
- id: ruff