Skip to content

Commit

Permalink
[7.17] Fix the lint job, build-dists script
Browse files Browse the repository at this point in the history
  • Loading branch information
sethmlarson authored Feb 15, 2023
1 parent 2df8131 commit 16f58a7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion utils/build-dists.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def test_dist(dist):
# Build the venv and install the dist
run("python", "-m", "venv", os.path.join(tmp_dir, "venv"))
venv_python = os.path.join(tmp_dir, "venv/bin/python")
run(venv_python, "-m", "pip", "install", "-U", "pip", "mypy")
run(venv_python, "-m", "pip", "install", "-U", "pip", "mypy==1.0.0")
run(venv_python, "-m", "pip", "install", dist)

# Test the sync namespaces
Expand Down Expand Up @@ -114,6 +114,8 @@ def test_dist(dist):
"-m",
"mypy",
"--strict",
"--install-types",
"--non-interactive",
os.path.join(base_dir, "test_elasticsearch/test_types/async_types.py"),
)

Expand All @@ -135,6 +137,8 @@ def test_dist(dist):
"-m",
"mypy",
"--strict",
"--install-types",
"--non-interactive",
os.path.join(base_dir, "test_elasticsearch/test_types/sync_types.py"),
)
else:
Expand All @@ -143,6 +147,8 @@ def test_dist(dist):
"-m",
"mypy",
"--strict",
"--install-types",
"--non-interactive",
os.path.join(
base_dir, "test_elasticsearch/test_types/aliased_types.py"
),
Expand Down

0 comments on commit 16f58a7

Please sign in to comment.