Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#895)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/asottile/pyupgrade: v3.10.1 → v3.14.0](asottile/pyupgrade@v3.10.1...v3.14.0)
- [github.com/psf/black: 23.7.0 → 23.9.1](psf/black@23.7.0...23.9.1)
- [github.com/astral-sh/ruff-pre-commit: v0.0.287 → v0.0.292](astral-sh/ruff-pre-commit@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 <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and CagtayFabry authored Oct 3, 2023
1 parent 6a739b6 commit c94b182
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion doc/src/tutorials/weldxfile.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
2 changes: 1 addition & 1 deletion weldx/asdf/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion weldx/welding/groove/iso_9692_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit c94b182

Please sign in to comment.