Skip to content

Commit

Permalink
Ignore flake8 error: iterable is not reassigned
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed Feb 20, 2024
1 parent 8fe906e commit 0ad8e62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions galaxy_release_util/point_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def read_package(package_path: pathlib.Path) -> Package:
def parse_changelog(package: Package) -> List[ChangelogItem]:

def append_change(changes, child):
if (rawsource := child.rawsource.strip()) and not rawsource.startswith("First release"):
if (rawsource := child.rawsource.strip()) and not rawsource.startswith("First release"): # noqa: B020
changes.append(f"* {rawsource}")

settings = frontend.get_default_settings(Parser) # type: ignore[attr-defined] ## upstream type stubs not updated?
Expand Down Expand Up @@ -273,7 +273,7 @@ def update_package_history(package: Package, new_version: Version):
# Skip publishing packages if no change ?
sorted_and_formatted_changes.append("No recorded changes since last release")
else:
for pr in sorted(package.prs, key=lambda pr: pr.number):
for pr in sorted(package.prs, key=lambda pr: pr.number): # noqa. B020
category = "Other changes"
text_target = _text_target(pr, skip_merge=False)
if text_target:
Expand Down

0 comments on commit 0ad8e62

Please sign in to comment.