Skip to content

Commit 2ba9bd0

Browse files
committed
reorder pre-commit config
Committed via https://github.com/asottile/all-repos
1 parent 3c94cfa commit 2ba9bd0

File tree

3 files changed

+19
-14
lines changed

3 files changed

+19
-14
lines changed

.pre-commit-config.yaml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,18 @@ repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
33
rev: v4.1.0
44
hooks:
5-
- id: check-docstring-first
5+
- id: trailing-whitespace
6+
- id: end-of-file-fixer
67
- id: check-yaml
78
- id: debug-statements
89
- id: double-quote-string-fixer
9-
- id: end-of-file-fixer
10-
- id: trailing-whitespace
11-
- repo: https://github.com/PyCQA/flake8
12-
rev: 4.0.1
13-
hooks:
14-
- id: flake8
15-
- repo: https://github.com/pre-commit/mirrors-autopep8
16-
rev: v1.6.0
17-
hooks:
18-
- id: autopep8
10+
- id: name-tests-test
11+
- id: requirements-txt-fixer
1912
- repo: https://github.com/asottile/reorder_python_imports
2013
rev: v3.0.1
2114
hooks:
2215
- id: reorder-python-imports
23-
args: [--py3-plus]
16+
args: [--py37-plus, --add-import, 'from __future__ import annotations']
2417
- repo: https://github.com/asottile/add-trailing-comma
2518
rev: v2.2.1
2619
hooks:
@@ -30,9 +23,17 @@ repos:
3023
rev: v2.31.1
3124
hooks:
3225
- id: pyupgrade
33-
args: [--py36-plus]
26+
args: [--py37-plus]
27+
- repo: https://github.com/pre-commit/mirrors-autopep8
28+
rev: v1.6.0
29+
hooks:
30+
- id: autopep8
31+
- repo: https://github.com/PyCQA/flake8
32+
rev: 4.0.1
33+
hooks:
34+
- id: flake8
3435
- repo: https://github.com/pre-commit/mirrors-mypy
35-
rev: v0.941
36+
rev: v0.942
3637
hooks:
3738
- id: mypy
3839
additional_dependencies: [types-all]

generate-readme

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/usr/bin/env python3
2+
from __future__ import annotations
3+
24
import yaml
35

46
Loader = getattr(yaml, 'CSafeLoader', yaml.SafeLoader)

tests/hooks_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import re
24

35
import pytest

0 commit comments

Comments
 (0)