Skip to content

Commit f9d4b84

Browse files
committed
Ruff.
1 parent 84866d3 commit f9d4b84

File tree

2 files changed

+15
-17
lines changed

2 files changed

+15
-17
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/fairmat-nfdi/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/fairmat-nfdi/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/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)