Skip to content

Commit 29da039

Browse files
committed
style: make pylint happy
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
1 parent b7d92a5 commit 29da039

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ messages_control.disable = [
116116
"missing-function-docstring",
117117
"missing-module-docstring",
118118
"duplicate-code",
119-
"unused-argument", # Handed by Ruff
119+
"unused-argument", # Handled by Ruff
120+
"wrong-import-position", # Handled by Ruff
120121
]
121122

122123
[tool.ruff]

src/uproot_browser/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def browse(filename: str) -> None:
9999
"""
100100
Display a TUI.
101101
"""
102-
import uproot_browser.dirs
102+
import uproot_browser.dirs # pylint: disable=import-outside-toplevel
103103
import uproot_browser.tui.browser # pylint: disable=import-outside-toplevel
104104

105105
fname = uproot_browser.dirs.filename(filename)

src/uproot_browser/tui/browser.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations
22

33
if not __package__:
4-
__package__ = "uproot_browser.tui"
4+
__package__ = "uproot_browser.tui" # pylint: disable=redefined-builtin
55

66
import contextlib
77
import sys
@@ -17,8 +17,8 @@
1717

1818
with contextlib.suppress(AttributeError):
1919
light_background = 0xDF, 0xDF, 0xDF # $surface-darken-1
20-
plt._dict.themes["default"][0] = light_background
21-
plt._dict.themes["default"][1] = light_background
20+
plt._dict.themes["default"][0] = light_background # pylint: disable=protected-access
21+
plt._dict.themes["default"][1] = light_background # pylint: disable=protected-access
2222

2323

2424
from uproot_browser.exceptions import EmptyTreeError

0 commit comments

Comments
 (0)