Skip to content
Open
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
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ name: CI
on: [push, pull_request, workflow_dispatch]

env:
UV_VERSION: "0.11.3"
UV_VERSION: "0.13.7"

jobs:
test:
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.14t" ]
python-version: ["3.11", "3.12", "3.13", "3.14", "3.14t", "3.15", "3.15t" ]
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v7
- name: Install uv
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@v10.3.3
with:
version: ${{ env.UV_VERSION }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
- name: Install Package
Expand All @@ -31,13 +31,13 @@ jobs:
matrix:
nox-session: ["lint", "type_check", "pyproject_fmt_check"]
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v7
- name: Install uv
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@v10.3.3
with:
version: ${{ env.UV_VERSION }}
- name: Set up Python
uses: actions/setup-python@v6
uses: actions/setup-python@v7
with:
python-version-file: ".python-version"
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.13
3.14
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ options.default_venv_backend = "uv"


@session(
python=["3.10", "3.11", "3.12", "3.13", "3.14"],
python=["3.11", "3.12", "3.13", "3.14", "3.15"],
uv_groups=["test"],
)
def test(s: Session) -> None:
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


@session(
python=["3.10", "3.11", "3.12", "3.13", "3.14", "3.14t"],
python=["3.11", "3.12", "3.13", "3.14", "3.14t", "3.15", "3.15t"],
uv_groups=["test"],
)
def test(s: Session) -> None:
Expand Down
34 changes: 15 additions & 19 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build-system]
build-backend = "uv_build"
requires = [ "uv-build>=0.11,<0.12" ]
requires = [ "uv-build>=0.13.7,<0.14" ]

[project]
name = "nox-uv"
Expand All @@ -11,34 +11,33 @@ keywords = [ "nox", "uv" ]
license = "MIT"
license-files = [ "LICENSE.txt" ]
authors = [ { name = "Dan Tebben", email = "dantebben@gmail.com" } ]
requires-python = ">=3.10"
requires-python = ">=3.11"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Topic :: Software Development :: Testing",
"Typing :: Typed",
]
dependencies = [ "nox>=2026.2.9" ]
dependencies = [ "nox>=2026.10.20" ]
urls.Homepage = "https://github.com/dantebben/nox-uv"
urls.Issues = "https://github.com/dantebben/nox-uv/issues"
urls.Repository = "https://github.com/dantebben/nox-uv"

[dependency-groups]
test = [
"pytest>=8.4",
# TODO: Remove this upper bound when CoverageWarnings are fixed.
"pytest-cov<7",
"pytest>=9.2",
"pytest-cov>=7.1",
]
lint = [ "pyproject-fmt>=2.8", "ruff>=0.9.7" ]
type_check = [ "mypy>=1.15" ]
lint = [ "pyproject-fmt>=2.30.3", "ruff>=0.17.3" ]
type_check = [ "mypy>=2.4.1" ]

[tool.uv]
default-groups = "all"
Expand Down Expand Up @@ -72,19 +71,16 @@ lint.flake8-tidy-imports.ban-relative-imports = "all"
lint.isort.force-sort-within-sections = true
lint.isort.split-on-trailing-comma = false

[tool.mypy]
ignore_missing_imports = true
enable_error_code = [ "deprecated", "exhaustive-match", "explicit-override" ]
strict = true

[tool.pytest]
ini_options.addopts = [ "--strict-config", "--strict-markers" ]
ini_options.xfail_strict = true
ini_options.filterwarnings = [ "error" ]

[tool.coverage]
# The nox session that calls coverage does not find "src/nox_uv", but it is found in the

# subprocess. Coverage generates a warning that the module was not found, but coverage is actually

# run and determined in the "parallel" subprocess.

[tool.mypy]
ignore_missing_imports = true
strict = true
enable_error_code = [ "deprecated", "exhaustive-match", "explicit-override" ]
# pytest-cov 7 delegates subprocess measurement to coverage.py.
run.patch = [ "subprocess" ]
4 changes: 2 additions & 2 deletions src/nox_uv/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

from collections.abc import Callable, Sequence
import functools
from typing import Any, TypeVar
from typing import Any, TypeAlias, TypeVar

import nox

R = TypeVar("R")

Python = Sequence[str] | str | bool
Python: TypeAlias = Sequence[str] | str | bool


def session(
Expand Down
2 changes: 1 addition & 1 deletion tests/subproject/.python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.13
3.14
6 changes: 3 additions & 3 deletions tests/subproject/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ def one_extra(s: Session) -> None:
assert "pyyaml" in r


@session(python=["3.10"])
@session(python=["3.11"])
def correct_python(s: Session) -> None:
assert s.python == "3.10"
assert s.python == "3.11"
v = s.run("python", "--version", silent=True)
if isinstance(v, str):
assert "Python 3.10" in v
assert "Python 3.11" in v
else:
raise RuntimeError("Python version was not returned.")

Expand Down
12 changes: 6 additions & 6 deletions tests/subproject/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
[build-system]
build-backend = "uv_build"
requires = [ "uv-build>=0.11,<0.12" ]
requires = [ "uv-build>=0.13.7,<0.14" ]

[project]
name = "subproject"
version = "0.1.0"
description = "Project for testing nox-uv"
readme = "README.md"
requires-python = ">=3.10"
requires-python = ">=3.11"
classifiers = [
"Private :: Do Not Upload",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
]
dependencies = [ "nox-uv" ]
dependencies = [ "coverage", "nox-uv" ]
optional-dependencies.pyyaml = [ "pyyaml" ]
optional-dependencies.scapy = [ "scapy" ]

[dependency-groups]
test = [ "nose>=1.3.7" ]
lint = [ "ruff>=0.9.7" ]
lint = [ "ruff>=0.17.3" ]
never-used = [ "networkx" ]
type_check = [ "mypy>=1.15" ]
type_check = [ "mypy>=2.4.1" ]

[tool.uv]
default-groups = [ "lint", "test", "type_check" ]
Expand Down
Loading