-
Notifications
You must be signed in to change notification settings - Fork 1
/
noxfile.py
38 lines (29 loc) · 1010 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
import nox
from laminci.nox import SYSTEM, build_docs, run, run_pre_commit, run_pytest
nox.options.default_venv_backend = "none"
@nox.session
def lint(session: nox.Session) -> None:
run_pre_commit(session)
@nox.session
def install(session: nox.Session) -> None:
run(
session,
f"uv pip install {SYSTEM} git+https://github.com/laminlabs/lamindb-setup",
)
run(
session,
f"uv pip install {SYSTEM} git+https://github.com/laminlabs/lnschema-core",
)
run(session, f"uv pip install {SYSTEM} git+https://github.com/laminlabs/bionty")
run(
session,
f"uv pip install {SYSTEM} git+https://github.com/laminlabs/lamindb",
)
run(session, f"uv pip install {SYSTEM} .[dev]")
@nox.session
def test(session: nox.Session) -> None:
run_pytest(session, coverage=False)
@nox.session
def docs(session: nox.Session) -> None:
run(session, "lamin init --storage ./docsbuild --schema bionty,wetlab")
build_docs(session, strict=True)