This repository has been archived by the owner on Feb 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
100 lines (100 loc) · 2.67 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
94
95
96
97
98
99
100
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-added-large-files
args: ['--maxkb=500']
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-toml
- id: check-vcs-permalinks
- id: check-yaml
- id: debug-statements
- id: destroyed-symlinks
- id: end-of-file-fixer
exclude: '\.md$'
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: no-commit-to-branch
args: [--branch, main]
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v1.6.0
hooks:
- id: autopep8
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
hooks:
- id: codespell
args:
- --skip=*.md
- --ignore-words-list
- readded
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.1
hooks:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/asottile/yesqa
rev: v1.3.0
hooks:
- id: yesqa
name: yesqa
additional_dependencies:
- flake8-bandit
- flake8-broken-line
- flake8-bugbear
- flake8-comprehensions
- flake8-docstrings
- flake8-debugger
- flake8-noqa
- flake8-string-format
- flake8-typing-imports
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
additional_dependencies:
- flake8-bandit
- flake8-broken-line
- flake8-bugbear
- flake8-comprehensions
- flake8-docstrings
- flake8-debugger
- flake8-noqa
- flake8-string-format
- flake8-typing-imports
- repo: local
hooks:
# see defaults at https://github.com/pre-commit/mirrors-mypy/blob/master/.pre-commit-hooks.yaml
- id: mypy
name: mypy
entry: mypy
language: python
types_or: [python, pyi]
require_serial: true
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
- repo: https://github.com/myint/docformatter
rev: v1.4
hooks:
- id: docformatter
args: [--in-place, --pre-summary-newline, --make-summary-multi-line]
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes