Skip to content

Commit

Permalink
Our flake8 makes me want to commit war crimes
Browse files Browse the repository at this point in the history
  • Loading branch information
Procyonae committed Jan 12, 2025
1 parent cdb506c commit bc7c1ac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions lang/string_extractor/parsers/enchant.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ def parse_enchant(json, origin):
for vision in json["special_vision"]:
if "descriptions" in vision:
for description in vision["descriptions"]:
if "text" in description:
special_vision_id = description["id"]
write_text(description["text"], origin,
comment="Description of creature revealed by "
"special vision \"{}\""
.format(special_vision_id))
parse_description(description, origin)


def parse_description(description, origin):
if "text" in description:
special_vision_id = description["id"]
write_text(description["text"], origin,
comment="Description of creature revealed by special "

Check failure on line 30 in lang/string_extractor/parsers/enchant.py

View workflow job for this annotation

GitHub Actions / check

continuation line under-indented for visual indent
"vision \"{}\"".format(special_vision_id))

Check failure on line 31 in lang/string_extractor/parsers/enchant.py

View workflow job for this annotation

GitHub Actions / check

continuation line over-indented for visual indent
2 changes: 1 addition & 1 deletion lang/string_extractor/parsers/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def parse_generic(json, origin):
write_text(pocket["name"], origin,
comment="Brief name of a pocket in item \"{}\""
.format(name))

if "relic_data" in json and "passive_effects" in json["relic_data"]:
for enchantment in json["relic_data"]["passive_effects"]:
parse_enchant(enchantment, origin)

0 comments on commit bc7c1ac

Please sign in to comment.