diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8d7dd2d1e886..d95e3d349204 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 0de739be9b55..05084bfa6fae 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -66,6 +66,13 @@ reports = ["lxml"] install-types = ["pip"] faster-cache = ["orjson"] +[dependency-groups] +dev = [ + # Not strictly needed for building 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.): + "pip-tools>=7.5.1", + "pip<25.3", # workaround for this problem until its fix gets released: https://github.com/jazzband/pip-tools/pull/2253 +] + [project.urls] Homepage = "https://www.mypy-lang.org/" Documentation = "https://mypy.readthedocs.io/en/stable/index.html"