-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.pre-commit-config.yaml
74 lines (68 loc) · 1.83 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
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_language_version:
python: python3.11
default_stages:
- commit
- push
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: b9a2d838763bf5b796022791ffb2d8b5b365b88f
hooks:
- id: check-added-large-files
args:
- --maxkb=2048
- --enforce-all
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-xml
- id: check-yaml
args:
- --allow-multiple-documents
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: fix-encoding-pragma
args:
- --remove
- id: mixed-line-ending
args:
- --fix=lf
# - id: no-commit-to-branch
# args: [--branch, main]
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/pyupgrade
rev: 83350b641a97064541c9a02792986eba4edd4ae2
hooks:
- id: pyupgrade
args:
- --py311-plus
- repo: https://github.com/asottile/reorder_python_imports
rev: 790b255edb380fbfec266506ed600f5a1b89671b
hooks:
- id: reorder-python-imports
args:
- --py311-plus
- repo: https://github.com/skyzyx/git-hooks
rev: 4a2f0dc93e5c5353ed5e619599b0d15e34df88db
hooks:
- id: git-check
- id: markdownlint
args:
- --ignore=node_modules
- --ignore=.github
- --ignore=.templates
- --fix
- id: script-must-have-extension
- id: shellcheck
- id: shfmt
- id: yamlfmt
- id: yapf