Skip to content
Myr

Allow serving docs via nox (#450)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Florimond Manca · committed by Seth Michael Larson · parent 38a1368 · Browse files · 2 files+11 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+11 added−8 removed

  • other:+11 added−8 removed

2 files+11 added−8 removed

modified:docs/contributing.md+3 added-8 removed
modified:noxfile.py+8 added
1import nox23nox.options.stop_on_first_error = True4nox.options.reuse_existing_virtualenvs = True5nox.options.keywords = "not serve"67source_files = ("httpx", "tools", "tests", "setup.py", "noxfile.py")89
38 unmodified lines
4849 session.run("mkdocs", "build")505152@nox.session(reuse_venv=True)53def serve(session):54 session.install("--upgrade", "mkdocs", "mkdocs-material")5556 session.run("mkdocs", "serve")575859@nox.session(python=["3.6", "3.7", "3.8"])60def test(session):61 session.install("--upgrade", "-r", "test-requirements.txt")62 session.run("python", "-m", "pytest", *session.posargs)