Skip to content

Commit

Permalink
chore: update pre-commit hooks (#1201)
Browse files Browse the repository at this point in the history
updates:
- [github.com/psf/black-pre-commit-mirror: 24.4.0 → 24.4.2](psf/black-pre-commit-mirror@24.4.0...24.4.2)
- [github.com/astral-sh/ruff-pre-commit: v0.4.1 → v0.4.2](astral-sh/ruff-pre-commit@v0.4.1...v0.4.2)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jim Pivarski <jpivarski@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] and jpivarski committed May 5, 2024
1 parent f067005 commit 86ef284
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.4.0
rev: 24.4.2
hooks:
- id: black

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.1
rev: v0.4.2
hooks:
- id: ruff
args: [--fix, --show-fixes]
Expand Down
2 changes: 1 addition & 1 deletion src/uproot/models/TArray.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def __repr__(self):
self._data,
max_line_width=numpy.inf,
separator=", ",
formatter={"float": lambda x: "%g" % x},
formatter={"float": lambda x: f"{x:g}"},
threshold=6,
),
id(self),
Expand Down
2 changes: 1 addition & 1 deletion src/uproot/models/TRef.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def __repr__(self):
self._data,
max_line_width=numpy.inf,
separator=", ",
formatter={"float": lambda x: "%g" % x},
formatter={"float": lambda x: f"{x:g}"},
threshold=6,
),
id(self),
Expand Down

0 comments on commit 86ef284

Please sign in to comment.