There was an error while loading. Please reload this page.
1 parent fd3bcbd commit 261fb3dCopy full SHA for 261fb3d
3 files changed
.pre-commit-config.yaml
@@ -16,12 +16,13 @@ repos:
16
rev: 3.7.9
17
hooks:
18
- id: flake8
19
+ additional_dependencies: [flake8-typing-imports==1.7.0]
20
- repo: https://github.com/pre-commit/mirrors-autopep8
21
rev: v1.5
22
23
- id: autopep8
24
- repo: https://github.com/pre-commit/pre-commit
- rev: v2.0.1
25
+ rev: v2.1.1
26
27
- id: validate_manifest
28
- repo: https://github.com/asottile/reorder_python_imports
@@ -30,7 +31,7 @@ repos:
30
31
- id: reorder-python-imports
32
args: [--py3-plus]
33
- repo: https://github.com/asottile/pyupgrade
- rev: v1.26.2
34
+ rev: v2.0.1
35
36
- id: pyupgrade
37
args: [--py36-plus]
setup.cfg
@@ -25,7 +25,7 @@ install_requires =
flake8
ruamel.yaml>=0.15
toml
-python_requires = >=3.6
+python_requires = >=3.6.1
29
[options.entry_points]
console_scripts =
tests/sort_simple_yaml_test.py
@@ -46,7 +46,7 @@ def test_integration_good_bad_lines(tmpdir, bad_lines, good_lines, retval):
46
47
assert main([file_path]) == retval
48
49
- with open(file_path, 'r') as f:
+ with open(file_path) as f:
50
assert [line.rstrip() for line in f.readlines()] == good_lines
51
52
0 commit comments