Skip to content

Commit

Permalink
Apply ruff rule RUF100
Browse files Browse the repository at this point in the history
RUF100 Unused blanket `noqa` directive
  • Loading branch information
DimitriPapadopoulos committed Aug 3, 2024
1 parent fbea70c commit 8c61dfd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/installer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
__version__ = "1.0.0.dev0"
__all__ = ["install"]

from installer._core import install # noqa
from installer._core import install
4 changes: 2 additions & 2 deletions src/installer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"WheelFilename", ["distribution", "version", "build_tag", "tag"]
)

# Adapted from https://github.com/python/importlib_metadata/blob/v3.4.0/importlib_metadata/__init__.py#L90 # noqa
# Adapted from https://github.com/python/importlib_metadata/blob/v3.4.0/importlib_metadata/__init__.py#L90
_ENTRYPOINT_REGEX = re.compile(
r"""
(?P<module>[\w.]+)\s*
Expand Down Expand Up @@ -235,7 +235,7 @@ def parse_entrypoints(text: str) -> Iterable[Tuple[str, str, str, "ScriptSection
:return:
name of the script, module to use, attribute to call, kind of script (cli / gui)
"""
# Borrowed from https://github.com/python/importlib_metadata/blob/v3.4.0/importlib_metadata/__init__.py#L115 # noqa
# Borrowed from https://github.com/python/importlib_metadata/blob/v3.4.0/importlib_metadata/__init__.py#L115
config = ConfigParser(delimiters="=")
config.optionxform = str # type: ignore[assignment, method-assign]
config.read_string(text)
Expand Down

0 comments on commit 8c61dfd

Please sign in to comment.