From 967bb407eb80f7adbbfcd77aa3f83e70ba857d1b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 20:05:17 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 23.12.1 → 24.1.1](https://github.com/psf/black/compare/23.12.1...24.1.1) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6812cb76..8a39be0d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ repos: - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.1.1 hooks: - id: black From f07f044e3d452e98481f851a7ddf6b05e57debec Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 20:11:02 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- doc/source/conf.py | 1 + examples/basic/fracture_analysis_contact_debonding.py | 1 + examples/basic/steady_state_thermal_analysis.py | 1 + examples/basic/topology_optimization_cantilever_beam.py | 1 + examples/basic/valve.py | 1 + 5 files changed, 5 insertions(+) diff --git a/doc/source/conf.py b/doc/source/conf.py index 422c2324..27947c74 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -1,4 +1,5 @@ """Sphinx documentation configuration file.""" + from datetime import datetime import os diff --git a/examples/basic/fracture_analysis_contact_debonding.py b/examples/basic/fracture_analysis_contact_debonding.py index bf65d74d..13494a58 100644 --- a/examples/basic/fracture_analysis_contact_debonding.py +++ b/examples/basic/fracture_analysis_contact_debonding.py @@ -8,6 +8,7 @@ This example displaces two two-dimensional parts on a double cantilever beam. """ + import os from PIL import Image diff --git a/examples/basic/steady_state_thermal_analysis.py b/examples/basic/steady_state_thermal_analysis.py index dc839010..12a85434 100644 --- a/examples/basic/steady_state_thermal_analysis.py +++ b/examples/basic/steady_state_thermal_analysis.py @@ -10,6 +10,7 @@ analysis calculates the effects of steady thermal loads on a system or component, in this example, a long bar model. """ + import os from PIL import Image diff --git a/examples/basic/topology_optimization_cantilever_beam.py b/examples/basic/topology_optimization_cantilever_beam.py index 65feb6f7..39304e6a 100644 --- a/examples/basic/topology_optimization_cantilever_beam.py +++ b/examples/basic/topology_optimization_cantilever_beam.py @@ -7,6 +7,7 @@ cantilever beam. The structural analysis is performed with basic constraints and load, which is then transferred to the topology optimization. """ + import os import ansys.mechanical.core as mech diff --git a/examples/basic/valve.py b/examples/basic/valve.py index 7d11612c..df655943 100644 --- a/examples/basic/valve.py +++ b/examples/basic/valve.py @@ -5,6 +5,7 @@ This example demonstrates a basic implementation of a valve in Python. """ + import os from PIL import Image