forked from pikepdf/pikepdf
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
36 lines (35 loc) · 992 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
35
36
# SPDX-FileCopyrightText: 2022 James R. Barlow
# SPDX-License-Identifier: MPL-2.0
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-case-conflict
- id: check-merge-conflict
exclude: \.rst$
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: name-tests-test
args: ["--pytest-test-first"]
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.3
hooks:
- id: clang-format
files: "src/.*\\.(cpp|h|hpp)?$"
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.3.5"
hooks:
- id: ruff
files: "src/.*\\.pyi?$"
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.9.0
hooks:
- id: mypy
exclude: "tests/.*\\.py$"
additional_dependencies:
- lxml-stubs
- types-Deprecated
- types-Pillow
- types-requests
- types-setuptools