forked from Pycord-Development/pycord
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
93 lines (91 loc) · 2.65 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
87
88
89
90
91
92
93
ci:
autoupdate_commit_msg: "chore(pre-commit): pre-commit autoupdate"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/PyCQA/autoflake
rev: v2.0.2
hooks:
- id: autoflake
# args:
# - --in-place
# - --remove-all-unused-imports
# - --expand-star-imports
# - --remove-duplicate-keys
# - --remove-unused-variables
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
args: [--safe, --quiet]
- repo: https://github.com/Pierre-Sassoulas/black-disable-checker
rev: v1.1.3
hooks:
- id: black-disable-checker
# - repo: https://github.com/PyCQA/flake8
# rev: 4.0.1
# hooks:
# - id: flake8
# additional_dependencies: [flake8-typing-imports==1.12.0]
# - repo: local
# hooks:
# - id: pylint
# name: pylint
# entry: pylint
# language: system
# types: [python]
# args: ["-rn", "-sn", "--rcfile=.pylintrc", "--fail-on=I"]
# # We define an additional manual step to allow running pylint with a spelling
# # checker in CI.
# - id: pylint
# alias: pylint-with-spelling
# name: pylint
# entry: pylint
# language: system
# types: [python]
# args: ["-rn", "-sn", "--rcfile=.pylintrc", "--fail-on=I", "--spelling-dict=en"]
# stages: [manual]
# - id: mypy
# name: mypy
# entry: mypy
# language: system
# types: [python]
# args: ["--non-interactive"]
# - repo: https://github.com/myint/rstcheck
# rev: "v5.0.0"
# hooks:
# - id: rstcheck
# args: ["--ignore-roles=func,class,mod", "--report=warning"]
# types: [text]
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v0.950
# hooks:
# - id: mypy
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.6
hooks:
- id: prettier
args: [--prose-wrap=always, --print-width=88]
- repo: https://github.com/DanielNoord/pydocstringformatter
rev: v0.7.3
hooks:
- id: pydocstringformatter
args:
[
--style=numpydoc,
--no-numpydoc-name-type-spacing,
--no-final-period,
--no-capitalize-first-letter,
]