Skip to content

Commit e457412

Browse files
committed
fix ruff.
1 parent 8732bbe commit e457412

File tree

4 files changed

+6454
-4
lines changed

4 files changed

+6454
-4
lines changed

.github/workflows/publish-north.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
# https://github.com/docker/metadata-action?tab=readme-ov-file#image-name-and-tag-sanitization
5454
tags: |
5555
type=ref,event=tag
56-
type=ref,event=pr,prefix={{branch}}-
56+
type=ref,event=pr,prefix=pr-
5757
type=raw,value=main,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
5858
flavor: |
5959
latest=auto
@@ -110,7 +110,7 @@ jobs:
110110
--rm "$FIRST_TAG" \
111111
/bin/bash -c "jupyter execute \$HOME/north_test/$nb"
112112
done
113-
113+
114114
- uses: docker/login-action@v3
115115
with:
116116
registry: ${{ env.REGISTRY }}
@@ -122,4 +122,4 @@ jobs:
122122
for TAG in $RAW_TAGS; do
123123
echo "Pushing tag: $TAG"
124124
docker push "$TAG"
125-
done
125+
done

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ stm_example = "pynxtools_spm.nomad.entrypoints:stm_example"
6969
afm_example = "pynxtools_spm.nomad.entrypoints:afm_example"
7070
spm_app = "pynxtools_spm.nomad.apps:spm_app"
7171

72+
[[tool.uv.index]]
73+
name = "nomad-lab"
74+
url = "https://gitlab.mpcdf.mpg.de/api/v4/projects/2187/packages/pypi/simple"
7275

7376
[tool.setuptools.packages.find]
7477
where = ["src"]

src/pynxtools_spm/nxformatters/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def get_actual_from_variadic_name(name: str) -> str:
267267
str
268268
The actual name.
269269
"""
270-
return name.split("[")[-1].split("]")[0]
270+
return name.rsplit("[", maxsplit=1)[-1].split("]", maxsplit=1)[0]
271271

272272

273273
def flatten_nested_list(list_dt: Union[list, tuple, Any]):

0 commit comments

Comments
 (0)