Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit ce3d9b8

Browse files
committed
chore(project-dev): ⚡ add proper venv reusing
1 parent 576d108 commit ce3d9b8

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

project/noxfile.py.jinja

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ os.environ.update(PDM_IGNORE_SAVED_PYTHON="1", PDM_USE_VENV="1")
1010
PYSRC = ["src/", "noxfile.py", "tests/"]
1111

1212

13-
@nox.session
13+
@nox.session(venv_backend="none")
1414
def test(session: Session) -> None:
1515
"""Run tests.
1616

@@ -21,7 +21,7 @@ def test(session: Session) -> None:
2121
session.run("pytest", "--cov", "tests/")
2222

2323

24-
@nox.session
24+
@nox.session(venv_backend="none")
2525
def format(session: Session) -> None:
2626
"""Run autoformatters.
2727

@@ -35,7 +35,7 @@ def format(session: Session) -> None:
3535
session.run("black", "--config", "config/black.toml", *PYSRC)
3636

3737

38-
@nox.session
38+
@nox.session(venv_backend="none")
3939
def lint(session: Session) -> None:
4040
"""Run ruff checks.
4141

@@ -46,7 +46,7 @@ def lint(session: Session) -> None:
4646
session.run("ruff", "check", "--config", "config/ruff.toml", *PYSRC)
4747

4848

49-
@nox.session
49+
@nox.session(venv_backend="none")
5050
def check_types(session: Session) -> None:
5151
"""Run type checking.
5252

@@ -57,7 +57,7 @@ def check_types(session: Session) -> None:
5757
session.run("mypy", "--config-file", "config/mypy.ini", *PYSRC)
5858

5959

60-
@nox.session
60+
@nox.session(venv_backend="none")
6161
def check_safety(session: Session) -> None:
6262
"""Run safety checks.
6363

@@ -73,7 +73,7 @@ def check_safety(session: Session) -> None:
7373
session.run("safety", "check", f"--file={requirements.name}", "--full-report")
7474

7575

76-
@nox.session
76+
@nox.session(venv_backend="none")
7777
def generate_changelog(session: Session) -> None:
7878
"""Generate changelog from the commits. It should be reviewed and cleaned up by a human.
7979

0 commit comments

Comments
 (0)