build: add clean to nox and remove coverage from default sessions
This commit is contained in:
parent
77cda0eae0
commit
8093ab7c9f
1 changed files with 17 additions and 1 deletions
18
noxfile.py
18
noxfile.py
|
|
@ -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]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue