Skip to content

Commit

Permalink
Added noxfile.py
Browse files Browse the repository at this point in the history
  • Loading branch information
furechan committed Sep 18, 2024
1 parent 8bda642 commit 3bc35ad
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
File renamed without changes.
22 changes: 22 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import os
import nox
import tempfile

VERSIONS = ["3.9", "3.10", "3.11", "3.12"]

ENVDIR = os.path.join(tempfile.gettempdir(), "nox")

nox.options.envdir = ENVDIR
nox.options.default_venv_backend = "uv"


@nox.session(python=VERSIONS)
def tests(session: nox.Session):
session.install(".", "pytest")
session.run("pytest")


@nox.session()
def lint(session: nox.Session):
session.install("ruff")
session.run("ruff", "check")

0 comments on commit 3bc35ad

Please sign in to comment.