-
-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy pathnoxfile.py
More file actions
32 lines (22 loc) · 643 Bytes
/
noxfile.py
File metadata and controls
32 lines (22 loc) · 643 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
25
26
27
28
29
30
31
32
import nox
@nox.session
def tests(session):
session.install("-r", "requirements.txt")
session.run("nikola", "build", "--strict")
session.run("nikola", "check", "--check-links", "--check-files")
@nox.session
def lint_rst(session):
session.install("rstcheck")
session.run("rstcheck", "-r", ".")
@nox.session
def lint_yaml(session):
session.install("yamllint")
session.run("yamllint", "-s", "data")
@nox.session
def lint_python(session):
session.install("black")
session.run("black", "--check", ".")
@nox.session
def format_python(session):
session.install("black")
session.run("black", ".")