Skip to content

Commit

Permalink
ci: add nox setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Jan 12, 2025
1 parent c63b823 commit b30ecac
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import nox


@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"])
def tests(session):
session.install(".[dev]")
session.install("-r", "./tests/requirements.txt")

session.run("pytest")


@nox.session
def lint(session):
session.install(".[dev]")
session.run("pre-commit", "run", "--all-files")
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ dev = [
"ruff",
"pytest",
"pytest-asyncio",
"nox",
]

[build-system]
Expand Down

0 comments on commit b30ecac

Please sign in to comment.