Skip to content

Commit 060cbb7

Browse files
committed
update
1 parent 1302a89 commit 060cbb7

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

‎pyproject.toml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ license = "MIT"
77
readme = "README.md"
88
include = [
99
"LICENSE",
10-
{ path = "MIGRATING_TO_1.0.md", format = ["sdist"] },
1110
{ path = "hyperbrowser/py.typed", format = ["sdist", "wheel"] },
1211
]
1312
homepage = "https://github.com/hyperbrowserai/python-sdk"

‎tests/test_typing_contract.py‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
1+
import importlib.util
12
import json
23
import re
34
import subprocess
45
import sys
56
from pathlib import Path
67
from typing import Set
78

9+
import pytest
10+
811

912
ROOT = Path(__file__).resolve().parents[1]
1013
TYPECHECK_DIR = ROOT / "tests" / "typecheck"
1114

1215

1316
def _run_mypy(fixture: str) -> subprocess.CompletedProcess:
17+
if importlib.util.find_spec("mypy") is None:
18+
pytest.skip("mypy is installed by the dedicated typing CI job")
1419
return subprocess.run(
1520
[
1621
sys.executable,
@@ -36,6 +41,8 @@ def _run_mypy(fixture: str) -> subprocess.CompletedProcess:
3641

3742

3843
def _run_pyright(fixture: str) -> subprocess.CompletedProcess:
44+
if importlib.util.find_spec("pyright") is None:
45+
pytest.skip("pyright is installed by the dedicated typing CI job")
3946
return subprocess.run(
4047
[
4148
sys.executable,

0 commit comments

Comments
 (0)