Skip to content

Commit d9ccd95

Browse files
authored
Merge pull request #455 from pre-commit/3_6_1_plus
pre-commit-hooks: python3.6.1+
2 parents fd3bcbd + 261fb3d commit d9ccd95

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ repos:
1616
rev: 3.7.9
1717
hooks:
1818
- id: flake8
19+
additional_dependencies: [flake8-typing-imports==1.7.0]
1920
- repo: https://github.com/pre-commit/mirrors-autopep8
2021
rev: v1.5
2122
hooks:
2223
- id: autopep8
2324
- repo: https://github.com/pre-commit/pre-commit
24-
rev: v2.0.1
25+
rev: v2.1.1
2526
hooks:
2627
- id: validate_manifest
2728
- repo: https://github.com/asottile/reorder_python_imports
@@ -30,7 +31,7 @@ repos:
3031
- id: reorder-python-imports
3132
args: [--py3-plus]
3233
- repo: https://github.com/asottile/pyupgrade
33-
rev: v1.26.2
34+
rev: v2.0.1
3435
hooks:
3536
- id: pyupgrade
3637
args: [--py36-plus]

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ install_requires =
2525
flake8
2626
ruamel.yaml>=0.15
2727
toml
28-
python_requires = >=3.6
28+
python_requires = >=3.6.1
2929

3030
[options.entry_points]
3131
console_scripts =

tests/sort_simple_yaml_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def test_integration_good_bad_lines(tmpdir, bad_lines, good_lines, retval):
4646

4747
assert main([file_path]) == retval
4848

49-
with open(file_path, 'r') as f:
49+
with open(file_path) as f:
5050
assert [line.rstrip() for line in f.readlines()] == good_lines
5151

5252

0 commit comments

Comments
 (0)