From 76d46d98fc0d115ef2cfead180d84b26eb58ae81 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 1 Aug 2023 10:06:43 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.0.278 → v0.0.281](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.278...v0.0.281) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0907cb06..6426292a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,7 +4,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.0.278 + rev: v0.0.281 hooks: - id: ruff args: [ --fix, --exit-non-zero-on-fix ] \ No newline at end of file From 0b8ce367b44bd7ca9c462895ce87a198ccc91ecc Mon Sep 17 00:00:00 2001 From: Henrique Gemignani Passos Lima Date: Tue, 1 Aug 2023 15:14:18 +0300 Subject: [PATCH 2/2] Fix --- tools/plot_simple_map.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/plot_simple_map.py b/tools/plot_simple_map.py index 2aaebc93..c445b3ef 100644 --- a/tools/plot_simple_map.py +++ b/tools/plot_simple_map.py @@ -3293,9 +3293,10 @@ def get_actor_name_for_node(node: dict) -> str: return node["extra"][variable] -def decode_world(root: Path, target_level: str, out_path: Path, only_update_existing_areas: bool = True, - skip_existing_actors: bool = True): # ruff: noqa: C901 - +def decode_world( # noqa: C901 + root: Path, target_level: str, out_path: Path, only_update_existing_areas: bool = True, + skip_existing_actors: bool = True +): global pickup_index, bmscc, brsa, brfld, brfld_path all_names = dread_data.all_asset_id_to_name() game = Game.DREAD