diff --git a/.gitignore b/.gitignore index 5919b6f..20e602d 100644 --- a/.gitignore +++ b/.gitignore @@ -139,3 +139,6 @@ cython_debug/ # setuptools_scm src/*/_version.py + +# Common debug file +/uproot-Event.root diff --git a/noxfile.py b/noxfile.py index 5cc40ff..602d4eb 100644 --- a/noxfile.py +++ b/noxfile.py @@ -2,6 +2,8 @@ import nox +nox.needs_version = ">=2024.3.2" +nox.options.default_venv_backend = "uv|virtualenv" nox.options.sessions = ["lint", "pylint", "tests"] @@ -19,7 +21,7 @@ def tests(session: nox.Session) -> None: """ Run the unit and regular tests. """ - session.install(".[test]") + session.install("-e.[test]") session.run("pytest", *session.posargs) @@ -28,18 +30,26 @@ def minimums(session: nox.Session) -> None: """ Run the unit and regular tests. """ - session.install(".[test]", "-ctests/constraints.txt") + session.install("-e.[test]", "-ctests/constraints.txt") session.run("pytest", *session.posargs) +@nox.session() +def run(session: nox.Session) -> None: + """ + Install and run. + """ + session.install("-e.", "--compile") + session.run("uproot-browser", *session.posargs) + + @nox.session def pylint(session: nox.Session) -> None: """ Run pylint. """ - session.install("pylint", "matplotlib") - session.install("-e", ".") + session.install("-e.", "pylint", "matplotlib") session.run("pylint", "src", *session.posargs) @@ -56,7 +66,7 @@ def build(session: nox.Session) -> None: @nox.session def make_logo(session: nox.Session) -> None: """ - Rerender the logo + Rerender the logo. """ session.install("pillow") diff --git a/src/uproot_browser/tui/browser.css b/src/uproot_browser/tui/browser.css index 7c41d8a..5012af3 100644 --- a/src/uproot_browser/tui/browser.css +++ b/src/uproot_browser/tui/browser.css @@ -26,6 +26,10 @@ Browser.-show-tree #tree-view { max-width: 50%; } +ContentSwitcher#main-view { + height: 100%; +} + #logo { content-align: center middle; } @@ -46,7 +50,6 @@ Browser.-show-tree #tree-view { content-align: center middle; } - Footer > .footer--highlight { background: $secondary-darken-2; } @@ -61,7 +64,7 @@ Footer > .footer--highlight-key { text-style: bold; } -Footer{ +Footer { background: $secondary; }