From f14cf5870f0ef9472a99c3fac7c1fa8e695da28e Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Tue, 3 Oct 2023 11:49:57 -0400 Subject: [PATCH] chore: support -R with nox --- noxfile.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/noxfile.py b/noxfile.py index 6bc6e5f..6523d64 100644 --- a/noxfile.py +++ b/noxfile.py @@ -21,7 +21,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") + session.install("-e.", "pylint") session.run("pylint", "src", *session.posargs) @@ -30,7 +30,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) @@ -48,7 +48,7 @@ def tests_flake8(session: nox.Session) -> None: """ Run the flake8 tests. """ - session.install(".", "flake8") + session.install("-e.", "flake8") result = session.run("flake8", "tests/example1.py", silent=True, success_codes=[1]) if len(result.splitlines()) != 2: session.error(f"Expected 2 errors from flake8\n{result}")