Skip to content

Commit 5a555e5

Browse files
pre-commit-ci[bot]pyansys-ci-botRobPasMue
authored
chore: pre-commit automatic update (#1630)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Co-authored-by: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com>
1 parent f08c24e commit 5a555e5

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ exclude: "tests/integration/files"
77
repos:
88

99
- repo: https://github.com/astral-sh/ruff-pre-commit
10-
rev: v0.8.6
10+
rev: v0.9.1
1111
hooks:
1212
- id: ruff
1313
- id: ruff-format
@@ -35,7 +35,7 @@ repos:
3535

3636
# this validates our github workflow files
3737
- repo: https://github.com/python-jsonschema/check-jsonschema
38-
rev: 0.30.0
38+
rev: 0.31.0
3939
hooks:
4040
- id: check-github-workflows
4141

doc/changelog.d/1630.maintenance.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pre-commit automatic update

docker/build_docker_windows.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
# Request the user to select the version of Ansys to use
5555
print(">>> Select the version of Ansys to use:")
5656
for i, (env_key, _) in enumerate(awp_root.items()):
57-
print(f"{i+1}: {env_key}")
57+
print(f"{i + 1}: {env_key}")
5858
selection = input("Selection [default - last option]: ")
5959

6060
# If no selection is made, use the first version

src/ansys/geometry/core/designer/component.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1663,7 +1663,7 @@ def build_parent_tree(comp: Component, parent_tree: str = "") -> str:
16631663
body_names = [body.name for body in self.bodies]
16641664

16651665
# Add the bodies to the lines (with indentation)
1666-
lines.extend([f"|{'-' * (indent-1)}(body) {name}" for name in body_names])
1666+
lines.extend([f"|{'-' * (indent - 1)}(body) {name}" for name in body_names])
16671667

16681668
# Print the beams
16691669
if consider_beams:
@@ -1680,7 +1680,7 @@ def build_parent_tree(comp: Component, parent_tree: str = "") -> str:
16801680
beam_names = [beam.id for beam in self.beams if beam.is_alive]
16811681

16821682
# Add the bodies to the lines (with indentation)
1683-
lines.extend([f"|{'-' * (indent-1)}(beam) {name}" for name in beam_names])
1683+
lines.extend([f"|{'-' * (indent - 1)}(beam) {name}" for name in beam_names])
16841684

16851685
# Print the nested components
16861686
if consider_comps:
@@ -1708,13 +1708,13 @@ def build_parent_tree(comp: Component, parent_tree: str = "") -> str:
17081708
)
17091709

17101710
# Add indentation to the subcomponent lines
1711-
lines.append(f"|{'-' * (indent-1)}(comp) {comp.name}")
1711+
lines.append(f"|{'-' * (indent - 1)}(comp) {comp.name}")
17121712

17131713
# Determine the prefix for the subcomponent lines and add them
1714-
prefix = f"{' ' * indent}" if idx == (n_comps - 1) else f":{' ' * (indent-1)}"
1714+
prefix = f"{' ' * indent}" if idx == (n_comps - 1) else f":{' ' * (indent - 1)}"
17151715
lines.extend([f"{prefix}{line}" for line in subcomp[1:]])
17161716

17171717
else:
1718-
lines.extend([f"|{'-' * (indent-1)}(comp) {comp.name}" for comp in comps])
1718+
lines.extend([f"|{'-' * (indent - 1)}(comp) {comp.name}" for comp in comps])
17191719

17201720
return lines if return_list else print("\n".join(lines))

0 commit comments

Comments
 (0)