Special-case installation of vectors in local nox (#10190)

This saves roughly a second, but makes getting feedback much more responsive.
This commit is contained in:
Alex Gaynor 2024-01-17 10:52:07 -05:00 committed by GitHub
parent 1f8fbed124
commit 376a266cef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -257,9 +257,11 @@ def local(session):
*pyproject_data["project"]["optional-dependencies"]["test"],
*pyproject_data["project"]["optional-dependencies"]["ssh"],
*pyproject_data["project"]["optional-dependencies"]["nox"],
"flit",
silent=True,
)
install(session, "-e", "vectors/", silent=True)
with session.cd("vectors/"):
session.run("flit", "install", "-s", silent=True)
session.run("ruff", "format", ".")
session.run("ruff", ".")