Skip to content

Commit b2fe81e

Browse files
[pre-commit.ci] pre-commit autoupdate (#485)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black-pre-commit-mirror: 25.12.0 → 26.3.1](psf/black-pre-commit-mirror@25.12.0...26.3.1) - [github.com/astral-sh/ruff-pre-commit: v0.14.9 → v0.15.7](astral-sh/ruff-pre-commit@v0.14.9...v0.15.7) - [github.com/pre-commit/mirrors-clang-format: v21.1.7 → v22.1.1](pre-commit/mirrors-clang-format@v21.1.7...v22.1.1) - [github.com/codespell-project/codespell: v2.4.1 → v2.4.2](codespell-project/codespell@v2.4.1...v2.4.2) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 273b1fb commit b2fe81e

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@ repos:
2929
- id: trailing-whitespace
3030

3131
- repo: https://github.com/psf/black-pre-commit-mirror
32-
rev: "25.12.0"
32+
rev: "26.3.1"
3333
hooks:
3434
- id: black
3535
additional_dependencies: [tomli]
3636

3737
- repo: https://github.com/astral-sh/ruff-pre-commit
38-
rev: v0.14.9
38+
rev: v0.15.7
3939
hooks:
4040
- id: ruff
4141
args: [--fix, --exit-non-zero-on-fix]
4242

4343
- repo: https://github.com/pre-commit/mirrors-clang-format
44-
rev: v21.1.7
44+
rev: v22.1.1
4545
hooks:
4646
- id: clang-format
4747
types_or: [c, c++]
@@ -52,7 +52,7 @@ repos:
5252
- id: cmake-format
5353

5454
- repo: https://github.com/codespell-project/codespell
55-
rev: v2.4.1
55+
rev: v2.4.2
5656
hooks:
5757
- id: codespell
5858
args: [-w]

docs/source/handle_markdown.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def get_markdown_links(line: str) -> str:
3535
str: Markdown links.
3636
"""
3737
possible = re.findall(r"\[(.*?)\]\((.*?)\)", line)
38-
return possible if possible else ""
38+
return possible or ""
3939

4040

4141
def get_special_links(line: str) -> List[Tuple[str, str]]:
@@ -52,7 +52,7 @@ def get_special_links(line: str) -> List[Tuple[str, str]]:
5252
x[::-1]
5353
for x in re.findall(r"<img src=\"(.*?)\".*title=\"(.*?)\">", line)
5454
]
55-
return possible if possible else ""
55+
return possible or ""
5656

5757

5858
def get_github_path_from(link):

splinepy/io/gismo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ def _matrix_from_node(xml_node):
822822
if format_flag.lower() == "ascii":
823823
return _np.fromstring(xml_node.text.replace("\n", " "), sep=" ")
824824
# Check for all excepted binary flags
825-
format = type_from_keyword.get(format_flag.lower(), None)
825+
format = type_from_keyword.get(format_flag.lower())
826826

827827
if format is None:
828828
raise ValueError(

splinepy/io/mfem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def _corner_vertex_ids(spline):
406406
# Retrieve information using bezman
407407
connectivity = spline_list.interfaces
408408

409-
(_, _, inverse_numeration, _) = _gus.utils.arr.close_rows(
409+
_, _, inverse_numeration, _ = _gus.utils.arr.close_rows(
410410
corner_vertices, tolerance, return_intersection=False
411411
)
412412
vertex_ids = inverse_numeration.reshape(-1, n_vertex_per_element)

0 commit comments

Comments
 (0)