From fa857ddf5b35e9b73cf92b7a6fda3f3215dd4c2e Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Fri, 20 Mar 2020 01:10:32 +0530 Subject: [PATCH 1/2] Fix nox -s docs --- noxfile.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/noxfile.py b/noxfile.py index 90838bcb..0bfa1700 100644 --- a/noxfile.py +++ b/noxfile.py @@ -35,11 +35,10 @@ def get_sphinx_build_command(kind): return [ "sphinx-build", "-W", - "-c", "docs/", # see note above "-d", "docs/build/_doctrees/" + kind, "-b", kind, - "docs/" + kind, - "docs/_build/" + kind, + "docs/source", + "docs/build/" + kind, ] session.run(*get_sphinx_build_command("html")) From 9dd917ce4b7e23d5a421bfd368deeadd3630ed71 Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Fri, 20 Mar 2020 01:11:07 +0530 Subject: [PATCH 2/2] Add default "dev" session, as a development env --- noxfile.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/noxfile.py b/noxfile.py index 0bfa1700..bd3c0ce6 100644 --- a/noxfile.py +++ b/noxfile.py @@ -3,6 +3,17 @@ import nox +nox.options.sessions = ["dev"] +nox.options.reuse_existing_virtualenvs = True +nox.options.error_on_external_run = True + + +@nox.session(python="3.5") +def dev(session): + session.install("-r", "requirements.txt") + + session.run("python", "manage.py", *session.posargs) + @nox.session(python=["3.5", "3.6", "3.7", "3.8"]) def test(session):