pre-commit-hooks: python3.6.1+

This commit is contained in:
Anthony Sottile 2020-02-24 10:57:26 -08:00
parent fd3bcbd96a
commit 261fb3d66c
3 changed files with 5 additions and 4 deletions

View File

@ -16,12 +16,13 @@ repos:
rev: 3.7.9
hooks:
- id: flake8
additional_dependencies: [flake8-typing-imports==1.7.0]
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v1.5
hooks:
- id: autopep8
- repo: https://github.com/pre-commit/pre-commit
rev: v2.0.1
rev: v2.1.1
hooks:
- id: validate_manifest
- repo: https://github.com/asottile/reorder_python_imports
@ -30,7 +31,7 @@ repos:
- id: reorder-python-imports
args: [--py3-plus]
- repo: https://github.com/asottile/pyupgrade
rev: v1.26.2
rev: v2.0.1
hooks:
- id: pyupgrade
args: [--py36-plus]

View File

@ -25,7 +25,7 @@ install_requires =
flake8
ruamel.yaml>=0.15
toml
python_requires = >=3.6
python_requires = >=3.6.1
[options.entry_points]
console_scripts =

View File

@ -46,7 +46,7 @@ def test_integration_good_bad_lines(tmpdir, bad_lines, good_lines, retval):
assert main([file_path]) == retval
with open(file_path, 'r') as f:
with open(file_path) as f:
assert [line.rstrip() for line in f.readlines()] == good_lines