Fix default Python version declaration in pre-commit config (#584)

* Fix default Python version declaration in pre-commit config

The new way of of declaring default Python version was introduced in
pre-commit 1.14.0 and warning about unknown config keys was introduced in
pre-commit 1.17.0.
This commit is contained in:
Boris Feld 2019-06-13 13:15:53 +02:00 коммит произвёл Marco
Родитель bd568e1560
Коммит 0b43d289ac
3 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -35,4 +35,5 @@ repos:
hooks: hooks:
- id: check-hooks-apply - id: check-hooks-apply
- id: check-useless-excludes - id: check-useless-excludes
python_version: python3.6 default_language_version:
python: python3.7

Просмотреть файл

@ -35,7 +35,7 @@ tasks:
workerType: github-worker workerType: github-worker
payload: payload:
maxRunTime: 3600 maxRunTime: 3600
image: python image: python:3.7
command: command:
- "/bin/bash" - "/bin/bash"
- "-lcx" - "-lcx"

Просмотреть файл

@ -50,7 +50,7 @@ setup(
] ]
}, },
classifiers=[ classifiers=[
"Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3 :: Only",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)", "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
], ],