-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
31 lines (28 loc) · 752 Bytes
/
.pre-commit-config.yaml
File metadata and controls
31 lines (28 loc) · 752 Bytes
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
exclude: ^mkdocs\.yml$
- id: end-of-file-fixer
exclude: ^news/.*
- id: trailing-whitespace
- id: check-added-large-files
args: [ --maxkb=100 ]
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.1.4
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]
# Run the Ruff formatter.
- id: ruff-format
# export python requirements
- repo: https://github.com/pdm-project/pdm
rev: 2.10.0
hooks:
- id: pdm-lock-check
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.1
hooks:
- id: mypy