-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
63 lines (57 loc) · 1.76 KB
/
.pre-commit-config.yaml
File metadata and controls
63 lines (57 loc) · 1.76 KB
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
59
60
61
62
63
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: check-yaml
- id: check-merge-conflict
- id: check-toml
- repo: https://github.com/mgedmin/check-python-versions
rev: "0.24.0"
hooks:
- id: check-python-versions
args: ["--only", "pyproject.toml,.github/workflows/test.yaml"]
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 3.2.1
hooks:
- id: editorconfig-checker
alias: ec
# Exclude files that are auto-generated or strictly formatted elsewhere
exclude: |
(?x)^(
LICENSE|
.*\.lock|
dist/.*
)$
- repo: https://github.com/hukkin/mdformat
rev: 1.0.0
hooks:
- id: mdformat
additional_dependencies:
- mdformat-gfm # GitHub Flavored Markdown support (tables, autolinks, etc.)
- mdformat-simple-breaks # Use --- for thematic breaks instead of 70 underscores
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.11
hooks:
# Linter runs before formatter so fixes (like removing imports) get formatted
- id: ruff-check
args: [--fix]
types_or: [python, pyi]
- id: ruff-format
types_or: [python, pyi]
- repo: local
hooks:
- id: hatch-mypy
name: hatch mypy check
entry: hatch run mypy:check
language: system
types: [python]
pass_filenames: false
- id: mergify-lint
name: mergify lint
entry: hatch run lint:mergify
language: system
files: ^\.mergify\.yml$
pass_filenames: false