generated from quintenroets/python-package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
52 lines (51 loc) · 1.38 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
repos:
- repo: https://github.com/PyCQA/docformatter
rev: eb1df34
hooks:
- id: docformatter
args: [--in-place, --make-summary-multi-line, --close-quotes-on-newline, --wrap-summaries, "88"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.1
hooks:
- id: ruff
- id: ruff-format
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/quintenroets/package-dev-tools
rev: v0.6.9
hooks:
- id: infer-missing-annotations
- repo: local
hooks:
- id: mypy
name: mypy
entry: mypy
language: system
files: '\.py'
fail_fast: true
require_serial: true
- id: run-tests
name: run-tests
entry: coverage run
language: system
pass_filenames: false
always_run: true
fail_fast: true
- repo: https://github.com/quintenroets/package-dev-tools
rev: v0.6.9
hooks:
- id: check-coverage
- id: check-shields
- id: check-version
ci:
autofix_commit_msg: auto fixes from pre-commit hooks
autoupdate_commit_msg: 'pre-commit auto updates'
autoupdate_schedule: monthly
skip: [mypy, run-tests, check-coverage]