forked from RicterZ/BGmi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
86 lines (75 loc) · 2.01 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:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: check-merge-conflict
exclude: '\.rst$'
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-docstring-first
- id: mixed-line-ending
args: [--fix=lf]
exclude: '\.vbs$'
- id: mixed-line-ending
args: [--fix=crlf]
files: '\.vbs$'
- id: check-json
# check for file bigger than 500kb
- id: check-added-large-files
- id: check-yaml
- id: debug-statements
- id: fix-encoding-pragma
args: [--remove]
- repo: https://github.com/Trim21/find-trailing-comma
rev: v0.0.1
hooks:
- id: find-trailing-comma
- repo: https://github.com/asottile/pyupgrade
rev: v2.3.0
hooks:
- id: pyupgrade
args: ['--py3-plus']
- repo: https://github.com/Trim21/mirrors-autoflake
rev: v1.3.1
hooks:
- id: autoflake
args: ['--in-place', '--remove-unused-variables', '--remove-all-unused-imports']
require_serial: true
- repo: https://github.com/timothycrosley/isort
rev: '4.3.21'
hooks:
- id: isort
args: [
'--line-width', '88',
'--trailing-comma',
'--multi-line', '3',
'--project', 'bgmi',
'--force-grid-wrap=0',
'--use-parentheses'
]
- repo: local
hooks:
# - id: isort
# name: isort
# entry: isort
# require_serial: true
# language: system
# types: [python]
# args: [ '--line-width', '88',
# '--trailing-comma',
# '--multi-line', '3',
# '--project', 'bgmi', ]
- id: black
name: black
entry: black
require_serial: true
language: system
types: [python]
#
# - id: poetry
# name: poetry
# entry: poetry check
# language: system
# pass_filenames: false
# require_serial: false
# files: 'pyproject.toml'