Skip to content

Commit

Permalink
ci: use uv and nox
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii committed Oct 7, 2024
1 parent 919076b commit d228a96
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 28 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
runs-on: [ubuntu-latest, macos-13, windows-latest]

include:
- python-version: pypy-3.8
- python-version: pypy-3.10
runs-on: ubuntu-latest


Expand All @@ -48,17 +48,16 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install package
run: python -m pip install ".[test]"
- uses: astral-sh/setup-uv@v3

- name: Test package
run: python -m pytest
- name: Install nox
run: uv tool install nox

- name: Install minimum versions
run: python -m pip install ".[test]" -c tests/constraints.txt
- name: Test package
run: nox -s tests -P ${{ matrix.python-version }}

- name: Test minimum versions
run: python -m pytest
run: nox -s minimums -P ${{ matrix.python-version }}

pass:
if: always()
Expand Down Expand Up @@ -86,7 +85,6 @@ jobs:
permissions:
id-token: write
attestations: write
contents: read
needs: [dist]
if: github.event_name == 'release' && github.event.action == 'published'
runs-on: ubuntu-latest
Expand Down
7 changes: 2 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ license = { file = "LICENSE" }
description = "Tools to inspect ROOT files with uproot"
readme = "README.md"

requires-python = ">=3.7"
requires-python = ">=3.8"

classifiers = [
"License :: OSI Approved :: BSD License",
Expand All @@ -26,7 +26,6 @@ classifiers = [
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand All @@ -48,7 +47,6 @@ dependencies = [
'plotext >=5.2.8',
'rich >=13.3.3',
'textual >=0.18.0',
'typing_extensions; python_version<"3.8"',
'uproot >=5',
]

Expand Down Expand Up @@ -109,7 +107,7 @@ ignore_missing_imports = true


[tool.pylint]
master.py-version = "3.7"
master.py-version = "3.8"
master.jobs = "0"
reports.output-format = "colorized"
similarities.ignore-imports = "yes"
Expand Down Expand Up @@ -160,7 +158,6 @@ ignore = [
"PLR",
"ISC001", # Conflicts with formatter
]
typing-modules = ["uproot_browser._compat.typing"]
unfixable = [
"SIM118", # Dict .keys() removal (uproot)
]
Expand Down
11 changes: 0 additions & 11 deletions src/uproot_browser/_compat/typing.py

This file was deleted.

4 changes: 1 addition & 3 deletions src/uproot_browser/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import dataclasses
import functools
from pathlib import Path
from typing import Any
from typing import Any, TypedDict

import uproot
import uproot.reading
Expand All @@ -16,8 +16,6 @@
from rich.text import Text
from rich.tree import Tree

from ._compat.typing import TypedDict

console = Console()

__all__ = (
Expand Down

0 comments on commit d228a96

Please sign in to comment.