diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 28828482706d..175b4d9f91ca 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -46,6 +46,7 @@ python -m venv venv ```bash python -m pip install -r test-requirements.txt +python -m pip install --group dev python -m pip install -e . hash -r # This resets shell PATH cache, not necessary on Windows ``` diff --git a/pyproject.toml b/pyproject.toml index 54d2263a03f6..8358297bce0a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,6 +65,14 @@ reports = ["lxml"] install-types = ["pip"] faster-cache = ["orjson"] +[dependency-groups] +dev = [ + # This is not strictly needed for building mypy per se, but pip-compile from this package is needed if you want to update the requirement files: + # (Word on the street is you can also use uv pip compile instead of pip-compile, for this task, if you want.) + "pip-tools>=7.5.2", # TODO: once https://github.com/jazzband/pip-tools/pull/2257 lands, change to pip-tools[stable] instead of specifying a version + "pip<=25.3", # TODO: once https://github.com/jazzband/pip-tools/pull/2257 lands, remove this dependency line altogether +] + [project.urls] Homepage = "https://www.mypy-lang.org/" Documentation = "https://mypy.readthedocs.io/en/stable/index.html"