Avoid building ourselves in the flake job (#9789)

This commit is contained in:
Alex Gaynor 2023-10-27 10:44:41 -04:00 committed by GitHub
parent 5838299787
commit bb28549247
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -152,7 +152,21 @@ def docs_linkcheck(session: nox.Session) -> None:
@nox.session
def flake(session: nox.Session) -> None:
install(session, ".[pep8test,test,ssh,nox]")
# Just install the dependencies needed for these tests - basically
# `pip install .[pep8test,test,ssh,nox]`, but without installing `.`
# TODO: Ideally there'd be a pip flag to install just our dependencies,
# but not install us.
install(
session,
"ruff",
"check-sdist",
"mypy",
"bcrypt",
"click",
"pytest",
"nox",
)
install(session, "-e", "vectors/")
session.run("ruff", ".")
session.run("ruff", "format", "--check", ".")