Skip to content

Commit 16f10ad

Browse files
authored
Merge pull request #129 from pre-commit/all-repos_autofix_reorder-pre-commit-config
reorder pre-commit config
2 parents 96be1a9 + 0eb2226 commit 16f10ad

File tree

2 files changed

+27
-20
lines changed

2 files changed

+27
-20
lines changed

.pre-commit-config.yaml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,39 @@ repos:
66
- id: end-of-file-fixer
77
- id: check-yaml
88
- id: debug-statements
9-
- id: name-tests-test
109
- id: double-quote-string-fixer
10+
- id: name-tests-test
1111
- id: requirements-txt-fixer
12-
- repo: https://github.com/PyCQA/flake8
13-
rev: 4.0.1
12+
- repo: https://github.com/asottile/setup-cfg-fmt
13+
rev: v1.20.0
1414
hooks:
15-
- id: flake8
16-
- repo: https://github.com/pre-commit/mirrors-autopep8
17-
rev: v1.6.0
18-
hooks:
19-
- id: autopep8
15+
- id: setup-cfg-fmt
2016
- repo: https://github.com/asottile/reorder_python_imports
2117
rev: v3.0.1
2218
hooks:
2319
- id: reorder-python-imports
2420
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]
2526
- repo: https://github.com/asottile/pyupgrade
2627
rev: v2.31.1
2728
hooks:
2829
- id: pyupgrade
2930
args: [--py37-plus]
30-
- repo: https://github.com/asottile/add-trailing-comma
31-
rev: v2.2.1
31+
- repo: https://github.com/pre-commit/mirrors-autopep8
32+
rev: v1.6.0
3233
hooks:
33-
- id: add-trailing-comma
34-
args: [--py36-plus]
34+
- id: autopep8
35+
- repo: https://github.com/PyCQA/flake8
36+
rev: 4.0.1
37+
hooks:
38+
- id: flake8
3539
- repo: https://github.com/pre-commit/mirrors-mypy
36-
rev: v0.941
40+
rev: v0.942
3741
hooks:
3842
- id: mypy
3943
additional_dependencies: [types-all]
40-
# not an actual source module
4144
exclude: ^pre_commit_mirror_maker/python/setup.py$

setup.cfg

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,23 @@ classifiers =
1515
Programming Language :: Python :: 3
1616
Programming Language :: Python :: 3 :: Only
1717
Programming Language :: Python :: 3.7
18+
Programming Language :: Python :: 3.8
19+
Programming Language :: Python :: 3.9
20+
Programming Language :: Python :: 3.10
1821
Programming Language :: Python :: Implementation :: CPython
1922
Programming Language :: Python :: Implementation :: PyPy
2023

2124
[options]
2225
packages = find:
23-
install_requires = packaging
26+
install_requires =
27+
packaging
2428
python_requires = >=3.7
2529

30+
[options.packages.find]
31+
exclude =
32+
tests*
33+
testing*
34+
2635
[options.entry_points]
2736
console_scripts =
2837
pre-commit-mirror = pre_commit_mirror_maker.main:main
@@ -37,11 +46,6 @@ pre_commit_mirror_maker =
3746
ruby/*
3847
rust/*
3948

40-
[options.packages.find]
41-
exclude =
42-
tests*
43-
testing*
44-
4549
[bdist_wheel]
4650
universal = True
4751

0 commit comments

Comments
 (0)