Skip to content

Commit 16f58a7

Browse files
authored
[7.17] Fix the lint job, build-dists script
1 parent 2df8131 commit 16f58a7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

utils/build-dists.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def test_dist(dist):
6666
# Build the venv and install the dist
6767
run("python", "-m", "venv", os.path.join(tmp_dir, "venv"))
6868
venv_python = os.path.join(tmp_dir, "venv/bin/python")
69-
run(venv_python, "-m", "pip", "install", "-U", "pip", "mypy")
69+
run(venv_python, "-m", "pip", "install", "-U", "pip", "mypy==1.0.0")
7070
run(venv_python, "-m", "pip", "install", dist)
7171

7272
# Test the sync namespaces
@@ -114,6 +114,8 @@ def test_dist(dist):
114114
"-m",
115115
"mypy",
116116
"--strict",
117+
"--install-types",
118+
"--non-interactive",
117119
os.path.join(base_dir, "test_elasticsearch/test_types/async_types.py"),
118120
)
119121

@@ -135,6 +137,8 @@ def test_dist(dist):
135137
"-m",
136138
"mypy",
137139
"--strict",
140+
"--install-types",
141+
"--non-interactive",
138142
os.path.join(base_dir, "test_elasticsearch/test_types/sync_types.py"),
139143
)
140144
else:
@@ -143,6 +147,8 @@ def test_dist(dist):
143147
"-m",
144148
"mypy",
145149
"--strict",
150+
"--install-types",
151+
"--non-interactive",
146152
os.path.join(
147153
base_dir, "test_elasticsearch/test_types/aliased_types.py"
148154
),

0 commit comments

Comments
 (0)