Skip to content

Commit

Permalink
Satisfy pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kordejong committed Oct 25, 2024
1 parent 215cc95 commit 70e5177
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,5 @@ repos:
exclude: |
(?x)^(
adaptation_pathways.spec.in|
pyproject.toml|
)$
2 changes: 1 addition & 1 deletion source/package/adaptation_pathways/desktop/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -72,6 +72,7 @@ def _draw_edges(
return edge_collection


# pylint: disable=too-many-positional-arguments
def _draw_nodes(
axes,
pathway_map,
Expand Down

0 comments on commit 70e5177

Please sign in to comment.