Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #895

Merged
merged 3 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading