-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
86 lines (86 loc) · 2.26 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
repos:
- hooks:
- args:
- --markdown-linebreak-ext=md,markdown
id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-ast
- id: fix-byte-order-marker
- id: check-merge-conflict
- id: debug-statements
- id: detect-private-key
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- args:
- --fix=lf
id: mixed-line-ending
- exclude: ^\.(vscode|devcontainer)/
id: check-json
- args:
- --indent
- '4'
- --autofix
- --no-sort-keys
exclude: ^\.(vscode|devcontainer)/
id: pretty-format-json
- id: check-toml
repo: https://github.com/pre-commit/pre-commit-hooks
rev: 2c9f875913ee60ca25ce70243dc24d5b6415598c
- repo: https://github.com/bwhmather/ssort
rev: dcb59fdb9b46ed1bb8e6ca2107e35f76cdc9c97e # frozen: 0.12.4
hooks:
- id: ssort
- hooks:
- id: black
repo: https://github.com/psf/black
rev: 8fe627072f15ff2e3d380887b92f7868efaf6d05
- hooks:
- id: isort
repo: https://github.com/pycqa/isort
rev: c235f5e450b4b84e58d114ed4c589cbf454175a3
- hooks:
- id: python-no-eval
- id: python-no-log-warn
repo: https://github.com/pre-commit/pygrep-hooks
rev: 3a6eb0fadf60b3cccfd80bad9dbb6fae7e47b316
- hooks:
- id: flynt
repo: https://github.com/ikamensh/flynt
rev: 651c822fdcf45fffcf9743dc755085f32acb65e3
- hooks:
- args:
- --py38-plus
id: pyupgrade
repo: https://github.com/asottile/pyupgrade
rev: 12af25eb252deaaecb6b259df40d01f42e716dc3
- hooks:
- additional_dependencies:
- tomli ; python_version < '3.11'
id: auto-walrus
repo: https://github.com/MarcoGorelli/auto-walrus
rev: 7855759486496a3248e9ff37dce7c6d57d39bfce
- hooks:
- additional_dependencies:
- tomli ; python_version < '3.11'
id: codespell
repo: https://github.com/codespell-project/codespell
rev: 6e41aba91fb32e9feb741a6258eefeb9c6e4a482
- hooks:
- id: commitizen
repo: https://github.com/commitizen-tools/commitizen
rev: 7c0bc1591103b1f089aab9810fc2a201ccb0552b
- hooks:
- entry: hatch run python3 -m mypy
exclude: tests/.*
id: mypy
language: system
name: mypy
types:
- python
repo: local