File tree 2 files changed +11
-2
lines changed
scripts/knot_benchmark/src/benchmark
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -204,6 +204,11 @@ def install(self, dependencies: list[str]):
204
204
"--python" ,
205
205
self .python ,
206
206
"--quiet" ,
207
+ # We pass `--exclude-newer` to ensure that type-checking of one of
208
+ # our projects isn't unexpectedly broken by a change in the
209
+ # annotations of one of that project's dependencies
210
+ "--exclude-newer" ,
211
+ "2024-09-03T00:00:00Z" ,
207
212
* dependencies ,
208
213
]
209
214
Original file line number Diff line number Diff line change @@ -15,7 +15,11 @@ class Project(typing.NamedTuple):
15
15
revision : str
16
16
17
17
dependencies : list [str ]
18
- """List of type checking dependencies"""
18
+ """List of type checking dependencies.
19
+
20
+ Dependencies are pinned using a `--exclude-newer` flag when installing them
21
+ into the virtual environment; see the `Venv.install()` method for details.
22
+ """
19
23
20
24
include : list [str ] = []
21
25
"""The directories and files to check. If empty, checks the current directory"""
@@ -96,7 +100,7 @@ def clone(self, checkout_dir: Path):
96
100
Project (
97
101
name = "black" ,
98
102
repository = "https://github.com/psf/black" ,
99
- revision = "c20423249e9d8dfb8581eebbfc67a13984ee45e9 " ,
103
+ revision = "ac28187bf4a4ac159651c73d3a50fe6d0f653eac " ,
100
104
include = ["src" ],
101
105
dependencies = [
102
106
"aiohttp" ,
You can’t perform that action at this time.
0 commit comments