From 1dfa6511291ed63a567aae7fc4ec08ececc23cce Mon Sep 17 00:00:00 2001 From: hauntsaninja <> Date: Fri, 26 Nov 2021 19:47:41 -0800 Subject: [PATCH] add several projects, including ones with "match" --- mypy_primer.py | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/mypy_primer.py b/mypy_primer.py index c5d1a81..8cdeec6 100644 --- a/mypy_primer.py +++ b/mypy_primer.py @@ -1277,6 +1277,35 @@ def inner() -> Optional[int]: pip_cmd="{pip} install types-protobuf", expected_success=True, ), + # https://github.com/spack/spack/blob/develop/lib/spack/spack/cmd/style.py + Project( + location="https://github.com/spack/spack", + mypy_cmd="{mypy} -p spack -p llnl", + expected_success=True, + ), + Project( + location="https://github.com/johtso/httpx-caching", + mypy_cmd="{mypy} .", + pip_cmd="{pip} install types-freezegun types-mock", + expected_success=True, + ), + *( + [ + Project( + location="https://github.com/sco1/pylox", + mypy_cmd="{mypy} .", + expected_success=True, + ), + Project( + location="https://github.com/ppb/ppb-vector", + mypy_cmd="{mypy} ppb_vector tests", + pip_cmd="{pip} install hypothesis", + expected_success=True, + ), + ] + if sys.version_info >= (3, 10) + else [] + ), # ============================== # Failures expected... # ============================== @@ -1300,7 +1329,7 @@ def inner() -> Optional[int]: # location="https://github.com/twisted/twisted.git", # mypy_cmd="{mypy} src", # ), - # Other repos with plugins: dry-python/returns, strawberry-graphql/strawberry + # Other repos with plugins: dry-python/returns, strawberry-graphql/strawberry, r-spacex/submanager Project( location="https://github.com/tornadoweb/tornado.git", mypy_cmd="{mypy} tornado", @@ -1364,6 +1393,11 @@ def inner() -> Optional[int]: mypy_cmd="{mypy} .", pip_cmd="{pip} install -r requirements.txt", ), + Project( + location="https://github.com/urllib3/urllib3", + mypy_cmd="{mypy} . --exclude setup.py", + pip_cmd="{pip} install -r mypy-requirements.txt", + ), ] assert len(PROJECTS) == len({p.name for p in PROJECTS})