Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 14, 2024
1 parent 7ffd661 commit 6c4fc2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/installer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def parse_entrypoints(text: str) -> Iterable[tuple[str, str, str, "ScriptSection
# TODO: make this a proper error, which can be caught.
assert len(attrs), "Attributes are empty"
assert attrs.isidentifier(), f"{attrs} is not a valid identifier"

script_section = cast("ScriptSection", section[: -len("_scripts")])

yield name, module, attrs, script_section
Expand Down

0 comments on commit 6c4fc2b

Please sign in to comment.