forked from pallets-eco/secure-cookie
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnoxfile.py
More file actions
24 lines (18 loc) · 738 Bytes
/
noxfile.py
File metadata and controls
24 lines (18 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import nox
@nox.session(python=["3.8", "3.7", "3.6", "3.5", "2.7", "pypy3"])
def tests(session):
if session.python == "2.7":
# unpinned on 2.7 so pip will find the last supported versions.
session.install(".", "-r", "requirements/tests.in")
else:
session.install(".", "-r", "requirements/tests.txt")
session.run("pytest", *session.posargs)
@nox.session()
def style(session):
session.install("pre-commit")
session.run("pre-commit", "run", "--all-files")
@nox.session()
def docs(session):
session.install(".", "-r", "requirements/docs.txt")
session.run("sphinx-build", "-M", "clean", "docs", "docs/_build")
session.run("sphinx-build", "-M", "html", "docs", "docs/_build", "-W")