diff --git a/pyproject.toml b/pyproject.toml index 79ffdd47..2a82dcbe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,9 +20,10 @@ classifiers = [ urls = {Homepage = "https://github.com/ipython/traitlets"} requires-python = ">=3.7" dynamic = ["version"] +dependencies = ["typing_extensions"] [project.optional-dependencies] -test = ["pytest>=7.0,<7.2", "pytest-mock", "pre-commit", "argcomplete>=2.0", "pytest-mypy-testing"] +test = ["pytest>=7.0,<7.2", "pytest-mock", "pre-commit", "argcomplete>=2.0", "pytest-mypy-testing", "mypy @ git+ssh://git@github.com/python/mypy@cb1d1a0baba37f35268cb605b7345726f257f960#egg=mypy"] docs = [ "myst-parser", "pydata-sphinx-theme", @@ -32,6 +33,9 @@ docs = [ [tool.hatch.version] path = "traitlets/_version.py" +[tool.hatch.metadata] +allow-direct-references = true + [tool.hatch.envs.docs] features = ["docs"] [tool.hatch.envs.docs.scripts] @@ -52,7 +56,7 @@ nowarn = "test -W default {args}" [tool.hatch.envs.typing] features = ["test"] -dependencies = ["mypy>=0.990"] +dependencies = ["mypy @ git+ssh://git@github.com/python/mypy@cb1d1a0baba37f35268cb605b7345726f257f960#egg=mypy"] [tool.hatch.envs.typing.scripts] test = "mypy --install-types --non-interactive {args:.}"