Skip to content

Commit

Permalink
fixup!
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Nov 15, 2023
1 parent 85f87fd commit 06b71a5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ repos:
rev: v1.3.0
hooks:
- id: yesqa
additional_dependencies:
- wemake-python-styleguide
- repo: https://github.com/PyCQA/isort
rev: '5.11.5'
hooks:
Expand Down
16 changes: 8 additions & 8 deletions packaging/pep517_backend/_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
sanitize_rst_roles,
)

__all__ = ( # noqa: WPS317, WPS410
__all__ = ( # noqa: WPS410
'build_sdist',
'build_wheel',
'get_requires_for_build_wheel',
Expand Down Expand Up @@ -150,7 +150,7 @@ def new_finalize_options(self): # noqa: WPS430
orig_finalize(self)

_distutils_install_cmd.finalize_options = new_finalize_options
try: # noqa: WPS501
try:
yield
finally:
_distutils_install_cmd.finalize_options = orig_finalize
Expand All @@ -166,7 +166,7 @@ def patched_dist_has_ext_modules():
orig_func = _DistutilsDistribution.has_ext_modules

_DistutilsDistribution.has_ext_modules = lambda *args, **kwargs: True
try: # noqa: WPS501
try:
yield
finally:
_DistutilsDistribution.has_ext_modules = orig_func
Expand All @@ -187,7 +187,7 @@ def _get_sanitized_long_description(self):
_DistutilsDistributionMetadata.get_long_description = (
_get_sanitized_long_description
)
try: # noqa: WPS501
try:
yield
finally:
_DistutilsDistributionMetadata.get_long_description = _orig_func
Expand All @@ -211,7 +211,7 @@ def patched_env(env):
'-DCYTHON_TRACE=1',
'-DCYTHON_TRACE_NOGIL=1',
)).strip()
try: # noqa: WPS501
try:
yield
finally:
os.environ.clear()
Expand All @@ -227,7 +227,7 @@ def _run_in_temporary_directory() -> t.Iterator[Path]:

@contextmanager
@patched_dist_get_long_description()
def maybe_prebuild_c_extensions( # noqa: WPS210, WPS430
def maybe_prebuild_c_extensions( # noqa: WPS210
build_inplace: bool = False,
config_settings: dict[str, str] | None = None,
) -> str:
Expand Down Expand Up @@ -279,7 +279,7 @@ def maybe_prebuild_c_extensions( # noqa: WPS210, WPS430
yield


def build_wheel( # noqa: WPS210, WPS430
def build_wheel(
wheel_directory: str,
config_settings: dict[str, str] | None = None,
metadata_directory: str | None = None,
Expand All @@ -295,7 +295,7 @@ def build_wheel( # noqa: WPS210, WPS430
)


def build_editable( # noqa: WPS210, WPS430
def build_editable(
wheel_directory: str,
config_settings: dict[str, str] | None = None,
metadata_directory: str | None = None,
Expand Down
2 changes: 1 addition & 1 deletion packaging/pep517_backend/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ def chdir_cm(path: os.PathLike) -> t.Iterator[None]:
os.chdir(original_wd)


__all__ = ('chdir_cm', ) # noqa: WPS317, WPS410
__all__ = ('chdir_cm', ) # noqa: WPS410

0 comments on commit 06b71a5

Please sign in to comment.