From 24d2e1d78d41611cdae83c47c6553881be7ca257 Mon Sep 17 00:00:00 2001 From: hauntsaninja Date: Sun, 29 Sep 2024 14:13:50 -0700 Subject: [PATCH] add colour-science --- mypy_primer/projects.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/mypy_primer/projects.py b/mypy_primer/projects.py index 6e7cce0..4f0b5d9 100644 --- a/mypy_primer/projects.py +++ b/mypy_primer/projects.py @@ -16,9 +16,12 @@ # - https://github.com/r-spacex/submanager # - https://github.com/NeilGirdhar/efax # - https://github.com/google/duet -# - https://github.com/RobertCraigie/prisma-client-py # - https://github.com/typeddjango/django-stubs +# repos with issues +# - https://github.com/RobertCraigie/prisma-client-py +# has a codegen build step that provides a lot of the regression check value + def update_projects(projects: list[Project], check: bool = False) -> None: # modifies `get_projects` in place. @@ -64,7 +67,7 @@ def get_projects() -> list[Project]: # Project( # location="https://github.com/ZettaAI/zetta_utils", # mypy_cmd="{mypy} .", - # pip_cmd="{pip} install types-Pillow types-cachetools types-requests attrs", + # install_cmd="{install} types-Pillow types-cachetools types-requests attrs", # expected_mypy_success=True, # supported_platforms=["linux", "darwin"], # ), @@ -1221,6 +1224,13 @@ def get_projects() -> list[Project]: expected_mypy_success=True, install_cmd="{install} . ./ext", ), + Project( + location="https://github.com/colour-science/colour", + mypy_cmd="{mypy} colour", + pyright_cmd="{pyright}", + deps=["numpy", "pytest", "matplotlib", "pandas-stubs"], + cost={"mypy": 45, "pyright": 180}, + ) ] assert len(projects) == len({p.name for p in projects}) for p in projects: