build: add clean to nox and remove coverage from default sessions

This commit is contained in:
Anand Balakrishnan 2023-09-07 13:55:14 -07:00
parent 77cda0eae0
commit 8093ab7c9f
No known key found for this signature in database

View file

@ -15,6 +15,22 @@ ENV = dict(
) )
@nox.session(python=False)
def clean(session: nox.Session):
session.run(
"git",
"clean",
"-e",
"!.envrc",
"-e",
"!.nox/**",
"-e",
"!.nox",
"-dfX",
external=True,
)
@nox.session @nox.session
def dev(session: nox.Session): def dev(session: nox.Session):
session.conda_install("pre-commit") session.conda_install("pre-commit")
@ -180,5 +196,5 @@ def coverage(session: nox.Session):
) )
skip = {"dev"} skip = {"dev", "clean", "coverage"}
nox.options.sessions = [key for key in nox.registry.get() if key not in skip] nox.options.sessions = [key for key in nox.registry.get() if key not in skip]