diff --git a/polugins_type_gen/Taskfile.yml b/polugins_type_gen/Taskfile.yml index 0166e33..722786f 100644 --- a/polugins_type_gen/Taskfile.yml +++ b/polugins_type_gen/Taskfile.yml @@ -6,9 +6,8 @@ tasks: - poetry run python scripts/generate_polars_stubs.py test: - deps: ['nox'] cmds: - - poetry run nox -r -s test + - poetry run pytest format: cmds: @@ -18,8 +17,3 @@ tasks: lint: cmds: - poetry run ruff check . - - nox: - sources: ["pyproject.toml", "poetry.lock"] - cmds: - - poetry install --only=nox diff --git a/polugins_type_gen/noxfile.py b/polugins_type_gen/noxfile.py deleted file mode 100644 index dbfa05f..0000000 --- a/polugins_type_gen/noxfile.py +++ /dev/null @@ -1,59 +0,0 @@ -"""Nox sessions. -From https://github.com/cjolowicz/cookiecutter-hypermodern-python-instance -""" - -from pathlib import Path -from typing import Iterable - -import nox - -python_versions = ["3.12", "3.11", "3.10", "3.9"] - - -def install(session: nox.Session, *, groups: Iterable[str], root: bool = True) -> None: - """Install the dependency groups using Poetry. - - This function installs the given dependency groups into the session's - virtual environment. When ``root`` is true (the default), the function - also installs the root package and its default dependencies. - - To avoid an editable install, the root package is not installed using - ``poetry install``. Instead, the function invokes ``pip install .`` - to perform a PEP 517 build. - - Args: - session: The Session object. - groups: The dependency groups to install. - root: Install the root package. - """ - session.run( - "poetry", - "install", - # "--no-root", - "--sync", - "--{}={}".format("only" if not root else "with", ",".join(groups)), - external=True, - ) - if root: - session.install(".") - - -@nox.session(python=python_versions) -def test(session: nox.Session) -> None: - """Run the test suite.""" - install(session, groups=["dev"], root=True) - try: - session.run("pytest", "--cov=polugins", *session.posargs) - coverage_file = Path(".coverage") - coverage_file.rename(coverage_file.with_suffix("." + session.python)) - - finally: - if session.interactive: - session.notify("coverage", posargs=[]) - - -@nox.session(python=python_versions[0]) -def coverage(session: nox.Session) -> None: - session.install("coverage") - session.run("coverage", "combine") - session.run("coverage", "report") diff --git a/polugins_type_gen/poetry.lock b/polugins_type_gen/poetry.lock index 96c6a62..6e227ab 100644 --- a/polugins_type_gen/poetry.lock +++ b/polugins_type_gen/poetry.lock @@ -121,13 +121,13 @@ toml = ["tomli"] [[package]] name = "distlib" -version = "0.3.8" +version = "0.3.9" description = "Distribution utilities" optional = false python-versions = "*" files = [ - {file = "distlib-0.3.8-py2.py3-none-any.whl", hash = "sha256:034db59a0b96f8ca18035f36290806a9a6e6bd9d1ff91e45a7f172eb17e51784"}, - {file = "distlib-0.3.8.tar.gz", hash = "sha256:1530ea13e350031b6312d8580ddb6b27a104275a31106523b8f123787f494f64"}, + {file = "distlib-0.3.9-py2.py3-none-any.whl", hash = "sha256:47f8c22fd27c27e25a65601af709b38e4f0a45ea4fc2e710f65755fa8caaaf87"}, + {file = "distlib-0.3.9.tar.gz", hash = "sha256:a60f20dea646b8a33f3e7772f74dc0b2d0772d2837ee1342a00645c81edf9403"}, ] [[package]] @@ -451,4 +451,4 @@ test = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "coverage-enable-subprocess [metadata] lock-version = "2.0" python-versions = "^3.9" -content-hash = "c6fb0d9ae82541f46010fce72850365227c2037d2000860cc66c9f0a55f81c8d" +content-hash = "eaa7c0589133d5b582de49e2b0f3491f5de95fe64fbedaa66a2c1d5aebc47d9f" diff --git a/polugins_type_gen/pyproject.toml b/polugins_type_gen/pyproject.toml index 9a48f63..afade9a 100644 --- a/polugins_type_gen/pyproject.toml +++ b/polugins_type_gen/pyproject.toml @@ -15,7 +15,6 @@ optional = true [tool.poetry.group.dev.dependencies] pytest = "^8.0.0" -nox = "^2023.4.22" coverage = "^7.2.7" pytest-env = "^0.8.2" pytest-cov = "^4.1.0"