Skip to content

Commit

Permalink
Update noxfile.py
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii authored Oct 2, 2024
1 parent b1e4c88 commit cf4faef
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@

nox.options.sessions = ["lint", "pylint", "tests"]

PYTHON_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11"]
PYTHON_VERSIONS = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]

nox.needs_version = ">=2024.4.15"
nox.options.default_venv_backend = "uv|virtualenv"

@nox.session
def lint(session):
Expand All @@ -21,14 +23,14 @@ def pylint(session: nox.Session) -> None:
Run pylint.
"""

session.install("pylint~=2.15.0")
session.install("-e", ".[dev]")
session.install("pylint")
session.install("-e.[dev]")
session.run("pylint", "src", *session.posargs)


@nox.session(python=PYTHON_VERSIONS)
def tests(session):
session.install(".[test]")
session.install("-y.[test]")
session.run("pytest", *session.posargs)


Expand All @@ -38,7 +40,6 @@ def build(session):
Build an SDist and wheel.
"""

session.install("build", "twine")
session.install("build", "twine", "check-wheel-contents")
session.run("python", "-m", "build")
session.run("twine", "check", "--strict", "dist/*")
Expand Down

0 comments on commit cf4faef

Please sign in to comment.