Make mypy pass on black in knot_benchmark (#13235)

This commit is contained in:
Alex Waygood 2024-09-04 10:35:58 +01:00 committed by GitHub
parent 9d1bd7a8a7
commit 57289099bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 2 deletions

View file

@ -204,6 +204,11 @@ class Venv:
"--python",
self.python,
"--quiet",
# We pass `--exclude-newer` to ensure that type-checking of one of
# our projects isn't unexpectedly broken by a change in the
# annotations of one of that project's dependencies
"--exclude-newer",
"2024-09-03T00:00:00Z",
*dependencies,
]

View file

@ -15,7 +15,11 @@ class Project(typing.NamedTuple):
revision: str
dependencies: list[str]
"""List of type checking dependencies"""
"""List of type checking dependencies.
Dependencies are pinned using a `--exclude-newer` flag when installing them
into the virtual environment; see the `Venv.install()` method for details.
"""
include: list[str] = []
"""The directories and files to check. If empty, checks the current directory"""
@ -96,7 +100,7 @@ ALL = [
Project(
name="black",
repository="https://github.com/psf/black",
revision="c20423249e9d8dfb8581eebbfc67a13984ee45e9",
revision="ac28187bf4a4ac159651c73d3a50fe6d0f653eac",
include=["src"],
dependencies=[
"aiohttp",