Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: support textual 0.33+ #167

Merged
merged 1 commit into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,6 @@ cython_debug/

# setuptools_scm
src/*/_version.py

# Common debug file
/uproot-Event.root
20 changes: 15 additions & 5 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]


Expand All @@ -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)


Expand All @@ -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)


Expand All @@ -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")
Expand Down
7 changes: 5 additions & 2 deletions src/uproot_browser/tui/browser.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ Browser.-show-tree #tree-view {
max-width: 50%;
}

ContentSwitcher#main-view {
height: 100%;
}

#logo {
content-align: center middle;
}
Expand All @@ -46,7 +50,6 @@ Browser.-show-tree #tree-view {
content-align: center middle;
}


Footer > .footer--highlight {
background: $secondary-darken-2;
}
Expand All @@ -61,7 +64,7 @@ Footer > .footer--highlight-key {
text-style: bold;
}

Footer{
Footer {
background: $secondary;
}

Expand Down