Skip to content

Commit 49ee743

Browse files
fix: use -e in more places in the noxfile (#567)
* fix: use -e in more places in the noxfile * style: pre-commit fixes * Update noxfile.py --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 5465c47 commit 49ee743

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/pages/guides/tasks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def tests(session: nox.Session) -> None:
212212
"""
213213
Run the unit and regular tests.
214214
"""
215-
session.install(".[test]")
215+
session.install("-e.[test]")
216216
session.run("pytest", *session.posargs)
217217
```
218218
<!-- prettier-ignore-end -->

{{cookiecutter.project_name}}/noxfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def pylint(session: nox.Session) -> None:
3131
"""
3232
# This needs to be installed into the package environment, and is slower
3333
# than a pre-commit check
34-
session.install(".", "pylint>=3.2")
34+
session.install("{% if cookiecutter.backend != "mesonpy" %}-e{% endif %}.", "pylint>=3.2")
3535
session.run("pylint", "{{ cookiecutter.__project_slug }}", *session.posargs)
3636

3737

@@ -40,7 +40,7 @@ def tests(session: nox.Session) -> None:
4040
"""
4141
Run the unit and regular tests.
4242
"""
43-
session.install(".[test]")
43+
session.install("{% if cookiecutter.backend != "mesonpy" %}-e{% endif %}.[test]")
4444
session.run("pytest", *session.posargs)
4545

4646

@@ -58,7 +58,7 @@ def docs(session: nox.Session) -> None:
5858
args, posargs = parser.parse_known_args(session.posargs)
5959
serve = args.builder == "html" and session.interactive
6060

61-
session.install("-e.[docs]", "sphinx-autobuild")
61+
session.install("{% if cookiecutter.backend != "mesonpy" %}-e{% endif %}.[docs]", "sphinx-autobuild")
6262

6363
shared_args = (
6464
"-n", # nitpicky mode

0 commit comments

Comments
 (0)