From 70e5177ff06291922b2cc3846e79ac9c9e0343ea Mon Sep 17 00:00:00 2001 From: Kor de Jong Date: Fri, 25 Oct 2024 08:41:09 +0200 Subject: [PATCH] Satisfy pre-commit --- .pre-commit-config.yaml | 1 + source/package/adaptation_pathways/desktop/application.py | 2 +- source/package/adaptation_pathways/plot/pathway_map/classic.py | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b5f080d..800b9fe 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -55,4 +55,5 @@ repos: exclude: | (?x)^( adaptation_pathways.spec.in| + pyproject.toml| )$ diff --git a/source/package/adaptation_pathways/desktop/application.py b/source/package/adaptation_pathways/desktop/application.py index c864c43..d59389a 100644 --- a/source/package/adaptation_pathways/desktop/application.py +++ b/source/package/adaptation_pathways/desktop/application.py @@ -532,7 +532,7 @@ def _add_action(self): colour = self._current_palette[colour_idx] action = Action(name) - assert not name in self.colour_by_action_name, name + assert name not in self.colour_by_action_name, name self.colour_by_action_name[action.name] = colour self.actions.append([action]) self._set_data_changed(True) diff --git a/source/package/adaptation_pathways/plot/pathway_map/classic.py b/source/package/adaptation_pathways/plot/pathway_map/classic.py index f4cc55b..adfa508 100644 --- a/source/package/adaptation_pathways/plot/pathway_map/classic.py +++ b/source/package/adaptation_pathways/plot/pathway_map/classic.py @@ -14,7 +14,7 @@ from .colour import default_colours -# pylint: disable=too-many-arguments +# pylint: disable=too-many-arguments, too-many-positional-arguments def _draw_edges( axes, pathway_map, @@ -72,6 +72,7 @@ def _draw_edges( return edge_collection +# pylint: disable=too-many-positional-arguments def _draw_nodes( axes, pathway_map,