[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-04-13 00:00:18 +00:00
parent 72ad6dc953
commit f4cd1ba0d6
813 changed files with 66015 additions and 58839 deletions

View file

@ -1,23 +1,22 @@
"""Extensions to the 'distutils' for large or complex distributions"""
from __future__ import annotations
from fnmatch import fnmatchcase
import functools
import os
import re
from fnmatch import fnmatchcase
import _distutils_hack.override # noqa: F401
import distutils.core
import setuptools.version
from distutils.errors import DistutilsOptionError
from distutils.util import convert_path
from ._deprecation_warning import SetuptoolsDeprecationWarning
import setuptools.version
from setuptools.extension import Extension
from setuptools.dist import Distribution
from setuptools.depends import Require
from setuptools.dist import Distribution
from setuptools.extension import Extension
from . import monkey
from ._deprecation_warning import SetuptoolsDeprecationWarning
__all__ = [
@ -64,7 +63,7 @@ class PackageFinder:
convert_path(where),
cls._build_filter('ez_setup', '*__pycache__', *exclude),
cls._build_filter(*include),
)
),
)
@classmethod
@ -179,7 +178,7 @@ class Command(_Command):
return default
elif not isinstance(val, str):
raise DistutilsOptionError(
"'%s' must be a %s (got `%s`)" % (option, what, val)
"'{}' must be a {} (got `{}`)".format(option, what, val),
)
return val
@ -201,7 +200,7 @@ class Command(_Command):
ok = False
if not ok:
raise DistutilsOptionError(
"'%s' must be a list of strings (got %r)" % (option, val)
"'{}' must be a list of strings (got {!r})".format(option, val),
)
def reinitialize_command(self, command, reinit_subcommands=0, **kw):