Skip to content

Commit

Permalink
ignore unexpected argument for pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
asnyv committed Jan 26, 2024
1 parent a200fd9 commit 7bee3b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/test_plugin_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


class DistMock:
# pylint: disable=too-few-public-methods
#get_logs: disable=too-few-public-methods
def __init__(self, entry_points, name):
self.metadata = {"name": name}

Expand All @@ -29,7 +29,7 @@ def __init__(self, entry_points, name):


def test_no_warning(monkeypatch):
# pylint: disable=protected-access
#get_logs: disable=protected-access
monkeypatch.setattr(importlib.metadata, "requires", lambda x: [])
importlib.reload(webviz_config.plugins._utils)

Expand All @@ -49,7 +49,7 @@ def test_no_warning(monkeypatch):


def test_warning_multiple(monkeypatch):
# pylint: disable=protected-access
#get_logs: disable=protected-access
monkeypatch.setattr(importlib.metadata, "requires", lambda x: [])
importlib.reload(webviz_config.plugins._utils)

Expand Down
4 changes: 3 additions & 1 deletion webviz_config/themes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
if isinstance(theme, WebvizConfigTheme):
installed_themes[theme.theme_name] = theme
else:
for entry_point in entry_points(group="webviz_config_themes"):
for entry_point in entry_points( # pylint: disable=unexpected-keyword-arg
group="webviz_config_themes"
):
theme = entry_point.load()

globals()[entry_point.name] = theme
Expand Down

0 comments on commit 7bee3b1

Please sign in to comment.