Skip to content

Commit 5d5eaa3

Browse files
authored
bump ruff, fix cython error (#715)
1 parent 2522037 commit 5d5eaa3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
33
# Ruff version.
4-
rev: v0.12.0
4+
rev: v0.14.0
55
hooks:
66
# Run the linter.
77
- id: ruff

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ docs = [
5757
]
5858
dev = [
5959
"mypy",
60-
"ruff>=0.12.0",
60+
"ruff>=0.14.0",
6161
"pytest",
6262
"pytest-timeout",
6363
"pytest-cov",

src/pynxtools/nomad/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def _to_group_name(nx_node: ET.Element):
6666
def _to_section(
6767
hdf_name: str | None,
6868
nx_def: str,
69-
nx_node: ET.Element | None,
69+
nx_node: Optional[ET.Element], # noqa: UP045
7070
current: MSection,
7171
nx_root,
7272
) -> MSection:

0 commit comments

Comments
 (0)