-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.pre-commit-config.yaml
50 lines (49 loc) · 1.42 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_install_hook_types: [pre-commit, commit-msg]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
stages: [pre-commit, manual ]
- id: end-of-file-fixer
stages: [ pre-commit, manual ]
- id: check-yaml
stages: [ pre-commit, manual ]
- id: check-added-large-files
stages: [ pre-commit, manual ]
- id: check-merge-conflict
stages: [ pre-commit, manual ]
- id: check-toml
stages: [ pre-commit, manual ]
- id: check-vcs-permalinks
stages: [ pre-commit, manual ]
- id: no-commit-to-branch
stages: [ pre-commit, manual ]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
hooks:
- id: mypy
stages: [ manual ]
- repo: https://github.com/asottile/dead
rev: v1.5.2
hooks:
- id: dead
stages: [ manual ]
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.19.0
hooks:
- id: commitlint
stages: [commit-msg, manual]
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.8.2
hooks:
# Run the linter.
- id: ruff
types_or: [ python, pyi ]
args: [ --fix ]
# Run the formatter.
- id: ruff-format
types_or: [ python, pyi ]