forked from TotallyNotRobots/CloudBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
77 lines (77 loc) · 1.71 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
ci:
skip:
- pylint
- mypy
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 38b88246ccc552bffaaf54259d064beeee434539 # frozen: v4.0.1
hooks:
- id: trailing-whitespace
args: ['--markdown-linebreak-ext=md,markdown']
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-ast
- id: check-byte-order-marker
- id: check-merge-conflict
- id: debug-statements
- id: detect-private-key
exclude: tests/data/.*
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-json
- id: pretty-format-json
args:
- --indent
- '4'
- --autofix
- --no-sort-keys
- id: check-toml
- id: fix-encoding-pragma
args:
- --remove
- repo: https://github.com/psf/black
rev: e3000ace2fd1fcb1c181bb7a8285f1f976bcbdc7 # frozen: 21.7b0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: fd5ba70665a37ec301a1f714ed09336048b3be63 # frozen: 5.9.3
hooks:
- id: isort
- repo: https://github.com/pre-commit/pygrep-hooks
rev: 6f51a66bba59954917140ec2eeeaa4d5e630e6ce # frozen: v1.9.0
hooks:
- id: python-no-eval
- id: python-no-log-warn
- repo: local
hooks:
- id: mypy
name: mypy
entry: mypy
language: system
types: [python]
- id: pylint
name: pylint
entry: pylint
args:
- '-s'
- 'no'
language: system
types: [python]
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: a27ba454fd1cfd7ce20b60f5a1aee310fd66df82 # frozen: 0.1.0
hooks:
- id: yamlfmt
args:
- --mapping
- '2'
- --sequence
- '2'
- --offset
- '0'
- --width
- '120'
- -e
- -p