import nox @nox.session def python(session): session.install("-rrequirements-dev.txt") session.run_always( "pip", "install", "-e", ".", "--no-build-isolation", env={"BUILD_DEBUG": "1"} ) session.run("pytest")