Skip to content

Commit 32c8ce5

Browse files
committed
Small fixes and changes to pre-commit config
1 parent 0abb4e2 commit 32c8ce5

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ repos:
2929
hooks:
3030
- id: bandit
3131
name: Run bandit (security linter for python)
32-
args: ["-c", "pyproject.toml", "-r", "-ll", "biomesh/", "tests/"]
32+
args: ["-c", "pyproject.toml", "-r", "-ll", "src/biomesh/", "tests/"]
3333
additional_dependencies: ["bandit[toml]"]
3434
- repo: https://github.com/PyCQA/docformatter
3535
rev: v1.7.7
@@ -41,7 +41,7 @@ repos:
4141
"--in-place",
4242
"--config=./pyproject.toml",
4343
"-r",
44-
"biomesh/",
44+
"src/biomesh/",
4545
"tests/",
4646
]
4747
- repo: https://github.com/econchick/interrogate

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pytest-cov==4.0.0
66
pytest-isort==3.1.0
77
pytest-sugar==0.9.6
88
black==24.3.0
9-
pre-commit==3.0.2
9+
pre-commit==4.3.0
1010
parameterized==0.8.1
1111
coverage==5.2.1
1212
pdoc==14.5.1

src/biomesh/adapt.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,7 @@ def lin_to_quad(mesh: meshio.Mesh) -> meshio.Mesh:
103103
new_cells = []
104104
cell_type = cellblock.type
105105

106-
if cell_type in ["vertex"]:
107-
# vertices do not need to be converted
108-
continue
109-
110-
if cell_type in ["hexahedron27", "tetra10", "triangle6", "quad9"]:
106+
if cell_type in ["vertex", "hexahedron27", "tetra10", "triangle6", "quad9"]:
111107
# this cell block is already quadratic, no need to convert
112108
new_cell_blocks.append(cellblock)
113109
for key, data in mesh.cell_data.items():

0 commit comments

Comments
 (0)