Skip to content

Commit 8732bbe

Browse files
committed
ruff fix.
1 parent 5c86e0f commit 8732bbe

File tree

3 files changed

+18
-20
lines changed

3 files changed

+18
-20
lines changed

src/pynxtools_spm/nomad/north_tools/spm/__init__.py

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,20 @@
22
from nomad.config.models.plugins import NorthToolEntryPoint
33

44
tool = NORTHTool(
5-
short_description='Jupyter Notebook server in NOMAD NORTH for NOMAD and pynxtools plugin pynxtools-spm.',
6-
image='ghcr.io/RubelMozumder/pynxtools-spm/jupyter:latest',
7-
description='Jupyter Notebook server in NOMAD NORTH for NOMAD and pynxtools plugin pynxtools-spm.',
5+
short_description="Jupyter Notebook server in NOMAD NORTH for NOMAD and pynxtools plugin pynxtools-spm.",
6+
image="ghcr.io/RubelMozumder/pynxtools-spm/jupyter:latest",
7+
description="Jupyter Notebook server in NOMAD NORTH for NOMAD and pynxtools plugin pynxtools-spm.",
88
external_mounts=[],
9-
file_extensions=['ipynb', 'nxs'],
10-
icon='logo/jupyter.svg',
11-
image_pull_policy='Always',
12-
default_url='/lab',
13-
maintainer=[{'email': 'fairmat@physik.hu-berlin.de', 'name': 'The NOMAD authors'}],
14-
mount_path='/home/jovyan',
15-
path_prefix='lab/tree',
9+
file_extensions=["ipynb", "nxs"],
10+
icon="logo/jupyter.svg",
11+
image_pull_policy="Always",
12+
default_url="/lab",
13+
maintainer=[{"email": "fairmat@physik.hu-berlin.de", "name": "The NOMAD authors"}],
14+
mount_path="/home/jovyan",
15+
path_prefix="lab/tree",
1616
privileged=False,
1717
with_path=True,
18-
display_name='spm',
18+
display_name="spm",
1919
)
2020

21-
north_tool = NorthToolEntryPoint(
22-
id_url_safe='pynxtools_spm_spm', north_tool=tool
23-
)
21+
north_tool = NorthToolEntryPoint(id_url_safe="pynxtools_spm_spm", north_tool=tool)

tests/functionality_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
)
3030
def test_replace_variadic_name_part(name, part_to_embed, expected):
3131
result = replace_variadic_name_part(name, part_to_embed)
32-
assert result == expected, (
33-
f"Failed for {name}, {part_to_embed}: got {result}, expected {expected}"
34-
)
32+
assert (
33+
result == expected
34+
), f"Failed for {name}, {part_to_embed}: got {result}, expected {expected}"

tests/test_nomad_north_tools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ def test_importing_north_tool():
1818
)
1919

2020
assert (
21-
north_tool.id_url_safe == 'pynxtools_spm_spm'
22-
or north_tool.id == 'nomad-north-spm'
23-
), 'NORTHtool entry point has incorrect id or id_url_safe'
21+
north_tool.id_url_safe == "pynxtools_spm_spm"
22+
or north_tool.id == "nomad-north-spm"
23+
), "NORTHtool entry point has incorrect id or id_url_safe"

0 commit comments

Comments
 (0)