forked from google/neuroglancer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
noxfile.py
43 lines (33 loc) · 861 Bytes
/
noxfile.py
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
33
34
35
36
37
38
39
40
41
42
43
import os
import nox
nox.options.reuse_existing_virtualenvs = True
nox.options.error_on_external_run = True
@nox.session
def lint(session):
session.install("-r", "python/requirements-lint.txt")
session.run("ruff", "check", ".")
@nox.session
def format(session):
session.install("-r", "python/requirements-lint.txt")
session.run("ruff", "format", ".")
@nox.session
def mypy(session):
session.install("-r", "python/requirements-mypy.txt")
session.run("mypy", ".")
@nox.session
def docs(session):
session.install("-r", "docs/requirements.txt")
session.run(
"sphinx-build",
"docs",
"dist/docs",
"-E",
"-j",
"auto",
"-T",
"-W",
"--keep-going",
env={
"PYTHONPATH": os.path.join(os.path.dirname(__file__), "python"),
},
)