Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
draft
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowrey committed Feb 9, 2024
1 parent fd8fbf8 commit 70ef4af
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

import nox # type: ignore

PYTHON_ALL_VERSIONS = ["3.12", "3.11", "3.10", "3.9", "3.8"]
PYTHON_DEFAULT_VERSION = "3.12"
LINT_DEPENDENCIES = ["black", "isort", "mypy"]
DEV_DEPENDENCIES = ["pytest", "pytest-cov", "pytest-httpserver"]

nox.options.reuse_existing_virtualenvs = True


@nox.session
@nox.session(python=PYTHON_ALL_VERSIONS)
def tests(session):
session.run("python", "-m", "pip", "install", "--upgrade", "pip")
session.install("-e", ".", *DEV_DEPENDENCIES)
Expand All @@ -25,7 +27,7 @@ def cover(session):
session.run("coverage", "erase")


@nox.session
@nox.session(python=PYTHON_DEFAULT_VERSION)
def lint(session):
session.run("python", "-m", "pip", "install", "--upgrade", "pip")
session.install(*LINT_DEPENDENCIES)
Expand All @@ -35,7 +37,7 @@ def lint(session):
session.run("mypy", "--install-types", "--check-untyped-defs", *files)


@nox.session
@nox.session(python=PYTHON_ALL_VERSIONS)
def develop(session):
session.run("python", "-m", "pip", "install", "--upgrade", "pip")
session.install(*DEV_DEPENDENCIES)
Expand Down

0 comments on commit 70ef4af

Please sign in to comment.