Skip to content

Commit

Permalink
Merge pull request #167 from randovania/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
github-actions[bot] authored Jan 19, 2025
2 parents 48b25d3 + 178e614 commit 169d01b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ default_language_version:
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.8.6
rev: v0.9.1
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]
Expand Down
5 changes: 2 additions & 3 deletions parse_pwe_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def _prop_flags(element: Element, game_id: str, path: Path) -> dict:
name = property_names.get(int(element.attrib.get("ID"), 16))

if name == "Unknown" and element.attrib.get("ID"):
name += f'_{element.attrib.get("ID")}'
name += f"_{element.attrib.get('ID')}"

_enums_by_game[game_id].append(EnumDefinition(name, extras["flags"], enum_base="IntFlag"))
extras["flagset_name"] = name
Expand Down Expand Up @@ -657,8 +657,7 @@ def from_stream(cls, data: typing.BinaryIO, size: int | None = None, default_ove

self.class_code += "\n @classmethod\n"
self.class_code += (
" def _fast_decode(cls, data: typing.BinaryIO, property_count: int"
") -> typing_extensions.Self | None:\n"
" def _fast_decode(cls, data: typing.BinaryIO, property_count: int) -> typing_extensions.Self | None:\n"
)
if self._can_fast_decode():
for fast_decode in self._create_fast_decode_body():
Expand Down

0 comments on commit 169d01b

Please sign in to comment.