Skip to content

Commit 07e1826

Browse files
authored
fix: support textual 0.33 (#167)
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 5930b0b commit 07e1826

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,6 @@ cython_debug/
139139

140140
# setuptools_scm
141141
src/*/_version.py
142+
143+
# Common debug file
144+
/uproot-Event.root

noxfile.py

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
import nox
44

5+
nox.needs_version = ">=2024.3.2"
6+
nox.options.default_venv_backend = "uv|virtualenv"
57
nox.options.sessions = ["lint", "pylint", "tests"]
68

79

@@ -19,7 +21,7 @@ def tests(session: nox.Session) -> None:
1921
"""
2022
Run the unit and regular tests.
2123
"""
22-
session.install(".[test]")
24+
session.install("-e.[test]")
2325
session.run("pytest", *session.posargs)
2426

2527

@@ -28,18 +30,26 @@ def minimums(session: nox.Session) -> None:
2830
"""
2931
Run the unit and regular tests.
3032
"""
31-
session.install(".[test]", "-ctests/constraints.txt")
33+
session.install("-e.[test]", "-ctests/constraints.txt")
3234
session.run("pytest", *session.posargs)
3335

3436

37+
@nox.session()
38+
def run(session: nox.Session) -> None:
39+
"""
40+
Install and run.
41+
"""
42+
session.install("-e.", "--compile")
43+
session.run("uproot-browser", *session.posargs)
44+
45+
3546
@nox.session
3647
def pylint(session: nox.Session) -> None:
3748
"""
3849
Run pylint.
3950
"""
4051

41-
session.install("pylint", "matplotlib")
42-
session.install("-e", ".")
52+
session.install("-e.", "pylint", "matplotlib")
4353
session.run("pylint", "src", *session.posargs)
4454

4555

@@ -56,7 +66,7 @@ def build(session: nox.Session) -> None:
5666
@nox.session
5767
def make_logo(session: nox.Session) -> None:
5868
"""
59-
Rerender the logo
69+
Rerender the logo.
6070
"""
6171

6272
session.install("pillow")

src/uproot_browser/tui/browser.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ Browser.-show-tree #tree-view {
2626
max-width: 50%;
2727
}
2828

29+
ContentSwitcher#main-view {
30+
height: 100%;
31+
}
32+
2933
#logo {
3034
content-align: center middle;
3135
}
@@ -46,7 +50,6 @@ Browser.-show-tree #tree-view {
4650
content-align: center middle;
4751
}
4852

49-
5053
Footer > .footer--highlight {
5154
background: $secondary-darken-2;
5255
}
@@ -61,7 +64,7 @@ Footer > .footer--highlight-key {
6164
text-style: bold;
6265
}
6366

64-
Footer{
67+
Footer {
6568
background: $secondary;
6669
}
6770

0 commit comments

Comments
 (0)