Skip to content

Commit 61615e6

Browse files
committed
reorder pre-commit config
Committed via https://github.com/asottile/all-repos
1 parent f4b01ab commit 61615e6

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

.pre-commit-config.yaml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,40 +4,39 @@ repos:
44
hooks:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer
7-
- id: check-docstring-first
87
- id: check-yaml
98
- id: debug-statements
9+
- id: double-quote-string-fixer
1010
- id: name-tests-test
1111
- id: requirements-txt-fixer
12-
- repo: https://github.com/PyCQA/flake8
13-
rev: 4.0.1
14-
hooks:
15-
- id: flake8
16-
additional_dependencies: [flake8-typing-imports==1.12.0]
17-
- repo: https://github.com/pre-commit/mirrors-autopep8
18-
rev: v1.6.0
12+
- repo: https://github.com/asottile/setup-cfg-fmt
13+
rev: v1.20.0
1914
hooks:
20-
- id: autopep8
15+
- id: setup-cfg-fmt
2116
- repo: https://github.com/asottile/reorder_python_imports
2217
rev: v3.0.1
2318
hooks:
2419
- id: reorder-python-imports
2520
args: [--py37-plus, --add-import, 'from __future__ import annotations']
21+
- repo: https://github.com/asottile/add-trailing-comma
22+
rev: v2.2.1
23+
hooks:
24+
- id: add-trailing-comma
25+
args: [--py36-plus]
2626
- repo: https://github.com/asottile/pyupgrade
2727
rev: v2.31.1
2828
hooks:
2929
- id: pyupgrade
3030
args: [--py37-plus]
31-
- repo: https://github.com/asottile/add-trailing-comma
32-
rev: v2.2.1
31+
- repo: https://github.com/pre-commit/mirrors-autopep8
32+
rev: v1.6.0
3333
hooks:
34-
- id: add-trailing-comma
35-
args: [--py36-plus]
36-
- repo: https://github.com/asottile/setup-cfg-fmt
37-
rev: v1.20.0
34+
- id: autopep8
35+
- repo: https://github.com/PyCQA/flake8
36+
rev: 4.0.1
3837
hooks:
39-
- id: setup-cfg-fmt
38+
- id: flake8
4039
- repo: https://github.com/pre-commit/mirrors-mypy
41-
rev: v0.941
40+
rev: v0.942
4241
hooks:
4342
- id: mypy

testing/make-index

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ HTML = '''\
1414

1515

1616
def main() -> int:
17-
links = "".join(
17+
links = ''.join(
1818
f'<li><a href="demo/{f}">{f}</a></li>'
1919
for f in sorted(os.listdir('demo')) if f.endswith('_pytest.html')
2020
)

0 commit comments

Comments
 (0)