From c94b182d0734c6d5ff2583a9af7ffaeca1f67ec9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 3 Oct 2023 11:24:57 +0200 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#895) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/asottile/pyupgrade: v3.10.1 → v3.14.0](https://github.com/asottile/pyupgrade/compare/v3.10.1...v3.14.0) - [github.com/psf/black: 23.7.0 → 23.9.1](https://github.com/psf/black/compare/23.7.0...23.9.1) - [github.com/astral-sh/ruff-pre-commit: v0.0.287 → v0.0.292](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.287...v0.0.292) - https://github.com/codespell-project/codespell/: v2.2.5 → v2.2.6 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix typos --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Çağtay Fabry --- .pre-commit-config.yaml | 8 ++++---- .../transformations_02_coordinate_system_manager.ipynb | 2 +- doc/src/tutorials/weldxfile.ipynb | 2 +- weldx/asdf/util.py | 2 +- weldx/welding/groove/iso_9692_1.py | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 58a5ae918..3b8035fd1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -29,16 +29,16 @@ repos: - mdformat-config # ----- Python formatting ----- - repo: https://github.com/asottile/pyupgrade - rev: v3.10.1 + rev: v3.14.0 hooks: - id: pyupgrade args: [--py39-plus] - repo: https://github.com/psf/black - rev: 23.7.0 + rev: 23.9.1 hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.287 + rev: v0.0.292 hooks: - id: ruff args: @@ -65,7 +65,7 @@ repos: - --remove-kernel-metadata # ----- spellchecking ----- - repo: https://github.com/codespell-project/codespell/ - rev: v2.2.5 + rev: v2.2.6 hooks: - id: codespell exclude: doc/src/legal-notice.md diff --git a/doc/src/tutorials/transformations_02_coordinate_system_manager.ipynb b/doc/src/tutorials/transformations_02_coordinate_system_manager.ipynb index 22f07a231..246c0145c 100644 --- a/doc/src/tutorials/transformations_02_coordinate_system_manager.ipynb +++ b/doc/src/tutorials/transformations_02_coordinate_system_manager.ipynb @@ -325,7 +325,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "The plot function has many other options that can be used to adjust the apearance of the plot.\n", + "The plot function has many other options that can be used to adjust the appearance of the plot.\n", "Consult the [function documentation](https://weldx.readthedocs.io/en/latest/_autosummary/weldx.CoordinateSystemManager.plot.html#weldx.CoordinateSystemManager.plot) for further details.\n", "\n", "If you are running a jupyter notebook, you can use k3d as rendering backend.\n", diff --git a/doc/src/tutorials/weldxfile.ipynb b/doc/src/tutorials/weldxfile.ipynb index b34388cc2..711169b66 100644 --- a/doc/src/tutorials/weldxfile.ipynb +++ b/doc/src/tutorials/weldxfile.ipynb @@ -6,7 +6,7 @@ "metadata": {}, "source": [ "# How to handle WelDX files\n", - "In this notebook we will demonstrate how to create, read, and update ASDF files created by WelDX. All the needed funcationality is contained in a single class named `WeldxFile`. We are going to show different modes of operation, like working with physical files on your harddrive, and in-memory files, both read-only and read-write mode.\n", + "In this notebook we will demonstrate how to create, read, and update ASDF files created by WelDX. All the needed functionality is contained in a single class named `WeldxFile`. We are going to show different modes of operation, like working with physical files on your harddrive, and in-memory files, both read-only and read-write mode.\n", "\n", "## Imports\n", "The WeldxFile class is being imported from the top-level of the weldx package." diff --git a/weldx/asdf/util.py b/weldx/asdf/util.py index 52e420a69..c7de94c57 100644 --- a/weldx/asdf/util.py +++ b/weldx/asdf/util.py @@ -770,7 +770,7 @@ def convert_wx_shape(path, key, value): if isinstance(value, dict) and ("wx_shape" in value): if isinstance(value["wx_shape"], list): value = value.copy() - value["wx_shape"] = f"[{','.join((str(n) for n in value['wx_shape']))}]" + value["wx_shape"] = f"[{','.join(str(n) for n in value['wx_shape'])}]" return key, value def mark_required(path, key, value): diff --git a/weldx/welding/groove/iso_9692_1.py b/weldx/welding/groove/iso_9692_1.py index 89e1962e4..1e734d774 100644 --- a/weldx/welding/groove/iso_9692_1.py +++ b/weldx/welding/groove/iso_9692_1.py @@ -216,7 +216,7 @@ def _compute_cross_sect_area_interpolated(self): profile = self.to_profile() rasterization = profile.rasterize(self._AREA_RASTER_WIDTH, stack=False) # skipcq: PYL-R1721 - points = [[(x, y) for x, y in shape.m.T] for shape in rasterization] + points = [list(shape.m.T) for shape in rasterization] return _compute_cross_sect_shape_points(points)