Skip to content

Commit a2c6438

Browse files
[pre-commit.ci] pre-commit autoupdate (#191)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.9.2 → v0.12.3](astral-sh/ruff-pre-commit@v0.9.2...v0.12.3) - [github.com/pre-commit/mirrors-mypy: v1.14.1 → v1.16.1](pre-commit/mirrors-mypy@v1.14.1...v1.16.1) - [github.com/codespell-project/codespell: v2.3.0 → v2.4.1](codespell-project/codespell@v2.3.0...v2.4.1) * fix: move to ruff's error code Signed-off-by: Henry Schreiner <[email protected]> --------- Signed-off-by: Henry Schreiner <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Henry Schreiner <[email protected]>
1 parent cde3e11 commit a2c6438

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ repos:
1414
- id: trailing-whitespace
1515

1616
- repo: https://github.com/astral-sh/ruff-pre-commit
17-
rev: "v0.9.2"
17+
rev: "v0.12.3"
1818
hooks:
1919
- id: ruff
2020
args: ["--fix", "--show-fixes"]
2121
- id: ruff-format
2222

2323
- repo: https://github.com/pre-commit/mirrors-mypy
24-
rev: v1.14.1
24+
rev: v1.16.1
2525
hooks:
2626
- id: mypy
2727
files: src
@@ -33,7 +33,7 @@ repos:
3333
- textual>=0.86
3434

3535
- repo: https://github.com/codespell-project/codespell
36-
rev: v2.3.0
36+
rev: v2.4.1
3737
hooks:
3838
- id: codespell
3939
args: [-L, "hist,iterm"]

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ messages_control.disable = [
122122
"duplicate-code",
123123
"unused-argument", # Handled by Ruff
124124
"wrong-import-position", # Handled by Ruff
125+
"import-outside-toplevel", # Handled by Ruff
125126
]
126127

127128

src/uproot_browser/__main__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def tree(filename: str) -> None:
3838
"""
3939
Display a tree.
4040
"""
41-
import uproot_browser.tree # pylint: disable=import-outside-toplevel
41+
import uproot_browser.tree # noqa: PLC0415
4242

4343
uproot_browser.tree.print_tree(filename)
4444

@@ -69,11 +69,11 @@ def plot(filename: str, iterm: bool) -> None:
6969
if iterm:
7070
os.environ.setdefault("MPLBACKEND", r"module://itermplot")
7171

72-
import matplotlib.pyplot as plt # pylint: disable=import-outside-toplevel
72+
import matplotlib.pyplot as plt # noqa: PLC0415
7373

74-
import uproot_browser.plot_mpl # pylint: disable=import-outside-toplevel
74+
import uproot_browser.plot_mpl # noqa: PLC0415
7575
else:
76-
import uproot_browser.plot # pylint: disable=import-outside-toplevel
76+
import uproot_browser.plot # noqa: PLC0415
7777

7878
item = uproot.open(filename)
7979

@@ -99,7 +99,7 @@ def browse(filename: str) -> None:
9999
"""
100100
Display a TUI.
101101
"""
102-
import uproot_browser.tui.browser # pylint: disable=import-outside-toplevel
102+
import uproot_browser.tui.browser # noqa: PLC0415
103103

104104
app = uproot_browser.tui.browser.Browser(
105105
path=filename,

0 commit comments

Comments
 (0)