Skip to content

Commit

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

updates:
- [github.com/psf/black: 23.1.0 → 23.3.0](psf/black@23.1.0...23.3.0)
- [github.com/charliermarsh/ruff-pre-commit: v0.0.259 → v0.0.260](astral-sh/ruff-pre-commit@v0.0.259...v0.0.260)
- [github.com/abravalheri/validate-pyproject: v0.12.1 → v0.12.2](abravalheri/validate-pyproject@v0.12.1...v0.12.2)
- [github.com/nbQA-dev/nbQA: 1.6.4 → 1.7.0](nbQA-dev/nbQA@1.6.4...1.7.0)

* Update pyproject.toml

* Update pyproject.toml

* Update test_weldx_file.py

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Çağtay Fabry <43667554+CagtayFabry@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] and CagtayFabry authored Apr 4, 2023
1 parent ae16d42 commit 91140eb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,23 @@ repos:
- mdformat-config
# ----- Python formatting -----
- repo: https://github.com/psf/black
rev: 23.1.0
rev: 23.3.0
hooks:
- id: black
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.259
rev: v0.0.260
hooks:
- id: ruff
args:
- --quiet
- --fix
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.12.1
rev: v0.12.2
hooks:
- id: validate-pyproject
# ----- Jupyter Notebooks -----
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.6.4
rev: 1.7.0
hooks:
- id: nbqa-black
- id: nbqa-ruff # ruff handles isort
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -228,3 +228,8 @@ required-imports = ["from __future__ import annotations"]

[tool.ruff.flake8-import-conventions]
extend-aliases = {xarray = "xr"}

[tool.nbqa.addopts]
ruff = [
"--extend-ignore=B018"
]
2 changes: 1 addition & 1 deletion weldx/tests/asdf_tests/test_weldx_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def test_operation_on_closed(self):

# cannot access closed handles
with pytest.raises(RuntimeError):
self.fh.file_handle
self.fh.file_handle # noqa: B018

def test_update_on_close(self):
"""A WeldxFile with mode="rw" should write changes on close."""
Expand Down

0 comments on commit 91140eb

Please sign in to comment.