-
Notifications
You must be signed in to change notification settings - Fork 11
/
.pre-commit-config.yaml
57 lines (56 loc) · 1.44 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
53
54
55
56
57
repos:
- repo: https://github.com/gozynta/pre-commit-hooks
rev: "v1.0.0"
hooks:
- id: check-poetry-sources
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: pretty-format-json
args:
- "--autofix"
- id: check-json
- id: check-toml
- id: check-yaml
args:
- "--allow-multiple-documents"
- id: check-merge-conflict
- id: detect-private-key
- id: destroyed-symlinks
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
- id: pyupgrade
args:
- "--py310-plus"
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-check-blanket-noqa
- id: python-check-blanket-type-ignore
- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.1.6
hooks:
- id: ruff
args:
- "--fix"
- "--exit-non-zero-on-fix"
- repo: https://github.com/andrei-shabanski/poetry-plugin-sort
rev: v0.2.0
hooks:
- id: poetry-sort
- repo: https://github.com/python-poetry/poetry
rev: "1.7.0"
hooks:
- id: poetry-check
ci:
autofix_prs: true
autofix_commit_msg: "[pre-commit.ci] automatic pre-commit fixes"