Skip to content

Commit

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

updates:
- [github.com/psf/black: 23.12.1 → 24.1.1](psf/black@23.12.1...24.1.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] committed Jan 30, 2024
1 parent 04d66fe commit 6275004
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repos:
- id: reorder-python-imports
args: ['--application-directories=.:src', --py36-plus]
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black
args: [--safe, --quiet]
Expand Down
8 changes: 5 additions & 3 deletions src/pytest_regressions/ndarrays_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,11 @@ def _check_fn(self, obtained_filename: Path, expected_filename: Path) -> None:
diff_id_str,
str(obtained),
str(expected),
str(obtained - expected)
if isinstance(obtained, np.number)
else "",
(
str(obtained - expected)
if isinstance(obtained, np.number)
else ""
),
)
error_msg += "\n"

Expand Down

0 comments on commit 6275004

Please sign in to comment.