Skip to content

Commit 564069b

Browse files
authored
Merge branch 'master' into dependabot/github_actions/mamba-org/setup-micromamba-2.0.4
2 parents c40c849 + f785d01 commit 564069b

15 files changed

Lines changed: 32 additions & 34 deletions

File tree

.github/workflows/citation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ jobs:
2020
path: ~/.cache/pip
2121
key: pip-cffconvert-0
2222
- name: pip installs
23-
run: pip install cffconvert
23+
run: pip install git+https://github.com/citation-file-format/cffconvert.git
2424
- name: run cffconvert validate
2525
run: cffconvert --validate

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repos:
2020
- id: check-yaml
2121
exclude: devtools/conda.recipe/meta.yaml # doesn't play nice with jinja
2222
- repo: https://github.com/executablebooks/mdformat
23-
rev: 0.7.21
23+
rev: 0.7.22
2424
hooks:
2525
- id: mdformat
2626
additional_dependencies:
@@ -29,7 +29,7 @@ repos:
2929
- mdformat-config
3030
# ----- Python formatting -----
3131
- repo: https://github.com/astral-sh/ruff-pre-commit
32-
rev: v0.8.6
32+
rev: v0.11.4
3333
hooks:
3434
# Run ruff linter.
3535
- id: ruff
@@ -39,11 +39,11 @@ repos:
3939
# Run ruff formatter.
4040
- id: ruff-format
4141
- repo: https://github.com/tox-dev/pyproject-fmt
42-
rev: v2.5.0
42+
rev: v2.5.1
4343
hooks:
4444
- id: pyproject-fmt
4545
- repo: https://github.com/abravalheri/validate-pyproject
46-
rev: v0.23
46+
rev: v0.24.1
4747
hooks:
4848
- id: validate-pyproject
4949
# ----- Jupyter Notebooks -----
@@ -63,7 +63,7 @@ repos:
6363
- --remove-kernel-metadata
6464
# ----- spellchecking -----
6565
- repo: https://github.com/codespell-project/codespell/
66-
rev: v2.3.0
66+
rev: v2.4.1
6767
hooks:
6868
- id: codespell
6969
exclude: doc/src/legal-notice.md

.ruff.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ select = [
5454
]
5555
"doc/src/tutorials/*" = [
5656
"D",
57+
"B018",
5758
]
5859
"doc/src/conf.py" = [
5960
"E501", # ignore long lines.

doc/rtd_environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ dependencies:
2626
#- jinja2=3.0
2727
- sphinx-copybutton=0.5
2828
- pydata-sphinx-theme<0.15 # parallel-write-unsafe
29+
- beautifulsoup4=4.12 # circular import error in 4.13
2930
- numpydoc>=0.5
3031
- sphinx-autodoc-typehints>=1.21.8,=2.0
3132
- typing_extensions

doc/src/tutorials/groove_types_01.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"## Introduction\n",
1515
"\n",
1616
"\n",
17-
"This tutorial is about generating different groove types and using the groove methods. The methods are seperatable in X parts:\n",
17+
"This tutorial is about generating different groove types and using the groove methods. The methods are separable in X parts:\n",
1818
"\n",
1919
"* Creating a groove with `get_groove`\n",
2020
"* Converting a groove to a profile\n",

doc/src/tutorials/util.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ def hash_path(path):
3939
sha256sum_actual = hash_path(out_file)
4040
if sha256sum_actual != sha256sum:
4141
raise RuntimeError(
42-
f"hash mismatch:\n actual = \t{sha256sum_actual}\n"
43-
f"desired = \t{sha256sum}"
42+
f"hash mismatch:\n actual = \t{sha256sum_actual}\ndesired = \t{sha256sum}"
4443
)
4544
if print_status:
4645
print("download successful.")

weldx/asdf/file.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def resolve_schema(schema):
348348
schema = get_schema_path(schema)
349349
except ValueError as ve:
350350
raise ValueError(
351-
f"provided custom_schema '{schema}' " "does not exist."
351+
f"provided custom_schema '{schema}' does not exist."
352352
) from ve
353353
return schema
354354

@@ -427,7 +427,7 @@ def _handle_path(filename, mode) -> (IO, bool):
427427
new_file_created = False
428428
exists = pathlib.Path(filename).exists()
429429
if not exists and mode == "r":
430-
raise RuntimeError(f"file {filename} has be created," " but mode is 'r'.")
430+
raise RuntimeError(f"file {filename} has be created, but mode is 'r'.")
431431

432432
if mode == "rw":
433433
if not exists:

weldx/asdf/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def readline_replace_eol():
301301
if isinstance(file, types_file_like.__args__):
302302
if isinstance(file, TextIOBase):
303303
raise ValueError(
304-
"cannot read files opened in text mode. " "Please open in binary mode."
304+
"cannot read files opened in text mode. Please open in binary mode."
305305
)
306306
if isinstance(file, SupportsFileReadWrite):
307307
file.seek(0)

weldx/asdf/validators.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def _validate_expected_list(list_expected):
284284
if "..." in str(exp):
285285
if "..." != exp:
286286
raise WxSyntaxError(
287-
f'"..." should not have additional properties:' f" {exp} was found."
287+
f'"..." should not have additional properties: {exp} was found.'
288288
)
289289
validator = 2
290290
elif "(" in str(exp):
@@ -417,8 +417,7 @@ def _validate_instance_shape(
417417

418418
if _dict_values is False:
419419
raise ValidationError(
420-
f"Shape {list_test[::-1]} does not match requirement "
421-
f"{list_expected[::-1]}"
420+
f"Shape {list_test[::-1]} does not match requirement {list_expected[::-1]}"
422421
)
423422

424423
return _dict_values

weldx/core/time_series.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def __repr__(self):
116116
representation += (
117117
f"\nTime:\n\t{self.time}\n"
118118
f"Values:\n\t{self.data.magnitude}\n"
119-
f'Interpolation:\n\t{self._data.attrs["interpolation"]}\n'
119+
f"Interpolation:\n\t{self._data.attrs['interpolation']}\n"
120120
)
121121
else:
122122
representation += self.data.__repr__().replace(

0 commit comments

Comments
 (0)