Skip to content

Commit 07c45f2

Browse files
chore(deps): pre-commit.ci autoupdate (#553)
* chore(deps): pre-commit.ci autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.9.10 → v0.11.0](astral-sh/ruff-pre-commit@v0.9.10...v0.11.0) * chore: placate ruff --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Andrzej Novak <[email protected]>
1 parent 745bf0b commit 07c45f2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ repos:
1818

1919
- repo: https://github.com/astral-sh/ruff-pre-commit
2020
# Ruff version.
21-
rev: v0.9.10
21+
rev: v0.11.0
2222
hooks:
2323
# Run the linter.
2424
- id: ruff

src/mplhep/plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ def iterable_not_string(arg):
484484

485485
if xtick_labels is None or flow == "show":
486486
if binticks:
487-
_slice = int(round(float(len(final_bins)) / len(ax.get_xticks()))) + 1
487+
_slice = round(float(len(final_bins)) / len(ax.get_xticks())) + 1
488488
ax.set_xticks(final_bins[::_slice])
489489
else:
490490
ax.set_xticks(_bin_centers)

0 commit comments

Comments
 (0)