Bump pre-commit hooks
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
This commit is contained in:
parent
d09a58cbbd
commit
a48645b33a
5 changed files with 6 additions and 7 deletions
|
|
@ -16,7 +16,7 @@ repos:
|
|||
hooks:
|
||||
- id: add-trailing-comma
|
||||
- repo: https://github.com/asottile/pyupgrade
|
||||
rev: v2.6.1
|
||||
rev: v2.7.1
|
||||
hooks:
|
||||
- id: pyupgrade
|
||||
- repo: https://github.com/asottile/seed-isort-config
|
||||
|
|
@ -45,7 +45,7 @@ repos:
|
|||
hooks:
|
||||
- id: rst-backticks
|
||||
- repo: https://github.com/asottile/setup-cfg-fmt
|
||||
rev: v1.9.0
|
||||
rev: v1.10.0
|
||||
hooks:
|
||||
- id: setup-cfg-fmt
|
||||
args: [--min-py3-version, "3.4"]
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ long_description = file: README.md
|
|||
long_description_content_type = text/markdown
|
||||
url = https://virtualenv.pypa.io/
|
||||
author = Bernat Gabor
|
||||
maintainer = Bernat Gabor
|
||||
license = MIT
|
||||
license_file = LICENSE
|
||||
platforms = any
|
||||
|
|
@ -30,7 +31,6 @@ classifiers =
|
|||
Topic :: Utilities
|
||||
author-email = gaborjbernat@gmail.com
|
||||
keywords = virtual, environments, isolated
|
||||
maintainer = Bernat Gabor
|
||||
maintainer-email = gaborjbernat@gmail.com
|
||||
project_urls =
|
||||
Source=https://github.com/pypa/virtualenv
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ from datetime import datetime
|
|||
|
||||
def run(args=None, options=None):
|
||||
start = datetime.now()
|
||||
from virtualenv.util.error import ProcessCallFailed
|
||||
from virtualenv.run import cli_run
|
||||
from virtualenv.util.error import ProcessCallFailed
|
||||
|
||||
if args is None:
|
||||
args = sys.argv[1:]
|
||||
|
|
|
|||
|
|
@ -37,9 +37,9 @@ def patch_dist(dist):
|
|||
_DISTUTILS_PATCH = "distutils.dist", "setuptools.dist"
|
||||
if sys.version_info > (3, 4):
|
||||
# https://docs.python.org/3/library/importlib.html#setting-up-an-importer
|
||||
from functools import partial
|
||||
from importlib.abc import MetaPathFinder
|
||||
from importlib.util import find_spec
|
||||
from functools import partial
|
||||
|
||||
class _Finder(MetaPathFinder):
|
||||
"""A meta path finder that allows patching the imported distutils modules"""
|
||||
|
|
|
|||
|
|
@ -116,10 +116,9 @@ def versioned_distribution_class():
|
|||
|
||||
if NEW_IMPORT_SYSTEM:
|
||||
# noinspection PyCompatibility
|
||||
from importlib.util import spec_from_file_location
|
||||
|
||||
# noinspection PyCompatibility
|
||||
from importlib.abc import SourceLoader
|
||||
from importlib.util import spec_from_file_location
|
||||
|
||||
class VersionedFindLoad(VersionPlatformSelect, SourceLoader):
|
||||
def find_spec(self, fullname, path, target=None):
|
||||
|
|
|
|||
Loading…
Reference in a new issue