From 85fbf3cccdafd5aced1bdf5fbf9555d06746deab Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Wed, 12 Mar 2025 18:21:14 -0400 Subject: [PATCH 1/3] fix: use -e in more places in the noxfile --- {{cookiecutter.project_name}}/noxfile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.project_name}}/noxfile.py b/{{cookiecutter.project_name}}/noxfile.py index b80f757f..8903a60d 100644 --- a/{{cookiecutter.project_name}}/noxfile.py +++ b/{{cookiecutter.project_name}}/noxfile.py @@ -31,7 +31,7 @@ def pylint(session: nox.Session) -> None: """ # This needs to be installed into the package environment, and is slower # than a pre-commit check - session.install(".", "pylint>=3.2") + session.install("-e.", "pylint>=3.2") session.run("pylint", "{{ cookiecutter.__project_slug }}", *session.posargs) @@ -40,7 +40,7 @@ def tests(session: nox.Session) -> None: """ Run the unit and regular tests. """ - session.install(".[test]") + session.install("-e.[test]") session.run("pytest", *session.posargs) From f55c65cabbc7d69330b5089076d6ae3245c1b6d9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 12 Mar 2025 22:22:19 +0000 Subject: [PATCH 2/3] style: pre-commit fixes --- docs/pages/guides/tasks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pages/guides/tasks.md b/docs/pages/guides/tasks.md index 0fd70322..ba5da986 100644 --- a/docs/pages/guides/tasks.md +++ b/docs/pages/guides/tasks.md @@ -212,7 +212,7 @@ def tests(session: nox.Session) -> None: """ Run the unit and regular tests. """ - session.install(".[test]") + session.install("-e.[test]") session.run("pytest", *session.posargs) ``` From cba382034b5c077f5753a09b8411b7a5c5a7c183 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Thu, 13 Mar 2025 09:38:14 -0400 Subject: [PATCH 3/3] Update noxfile.py --- {{cookiecutter.project_name}}/noxfile.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/{{cookiecutter.project_name}}/noxfile.py b/{{cookiecutter.project_name}}/noxfile.py index 8903a60d..a9b2b3e5 100644 --- a/{{cookiecutter.project_name}}/noxfile.py +++ b/{{cookiecutter.project_name}}/noxfile.py @@ -31,7 +31,7 @@ def pylint(session: nox.Session) -> None: """ # This needs to be installed into the package environment, and is slower # than a pre-commit check - session.install("-e.", "pylint>=3.2") + session.install("{% if cookiecutter.backend != "mesonpy" %}-e{% endif %}.", "pylint>=3.2") session.run("pylint", "{{ cookiecutter.__project_slug }}", *session.posargs) @@ -40,7 +40,7 @@ def tests(session: nox.Session) -> None: """ Run the unit and regular tests. """ - session.install("-e.[test]") + session.install("{% if cookiecutter.backend != "mesonpy" %}-e{% endif %}.[test]") session.run("pytest", *session.posargs) @@ -58,7 +58,7 @@ def docs(session: nox.Session) -> None: args, posargs = parser.parse_known_args(session.posargs) serve = args.builder == "html" and session.interactive - session.install("-e.[docs]", "sphinx-autobuild") + session.install("{% if cookiecutter.backend != "mesonpy" %}-e{% endif %}.[docs]", "sphinx-autobuild") shared_args = ( "-n", # nitpicky mode