Skip to content

Commit df7170a

Browse files
committed
Add mypy-plugin extra dependency
use `pip install classes[mypy-plugin]` for installin additional dependencies required by the mypy-plugin. Add mypy-plugin extra dependency use `pip install classes[mypy-plugin]` for installing additional dependencies required by the mypy-plugin.
1 parent c4643b0 commit df7170a

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ You are also required to [configure](https://returns.readthedocs.io/en/latest/pa
4040
`mypy` correctly and install our plugin
4141
to fix [this existing issue](https://github.com/python/mypy/issues/3157):
4242

43+
```bash
44+
pip install returns[compatible-mypy]
45+
```
46+
and
47+
4348
```ini
4449
# In setup.cfg or mypy.ini:
4550
[mypy]

poetry.lock

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,29 +48,30 @@ _ = "returns.contrib.hypothesis._entrypoint"
4848
python = "^3.7"
4949

5050
typing-extensions = ">=4.0,<5.0"
51+
mypy = { version = "^1.4.0", optional = true }
5152

5253
[tool.poetry.dev-dependencies]
5354
anyio = "^3.7"
5455
trio = "^0.22"
5556
attrs = "^23.1"
5657
httpx = "^0.24"
5758

58-
mypy = "^1.4"
59+
mypy = "^1.4.0"
5960
wemake-python-styleguide = "^0.17"
6061
flake8-pytest-style = "^1.6"
6162
flake8-pyi = "^23.4"
62-
nitpick = "^0.33"
63+
nitpick = "^0.33.2"
6364
codespell = "^2.2"
64-
slotscheck = "^0.16"
65+
slotscheck = "^0.16.4"
6566

6667
safety = "^2.3"
6768

6869
pytest = "^7.4"
6970
pytest-cov = "^4.1"
7071
pytest-randomly = "^3.12"
71-
pytest-mypy-plugins = "^1.11"
72+
pytest-mypy-plugins = "^1.11.1"
7273
pytest-subtests = "^0.11"
73-
hypothesis = "^6.79"
74+
hypothesis = "^6.78"
7475

7576
sphinx = "^5.2"
7677
sphinx-autodoc-typehints = "^1.23"
@@ -81,9 +82,12 @@ doc8 = "^1.0"
8182
m2r2 = "^0.3"
8283
tomlkit = "^0.11"
8384

85+
[tool.poetry.extras]
86+
compatible-mypy = ["mypy"]
87+
8488

8589
[build-system]
86-
requires = ["poetry-core>=1.5.0"]
90+
requires = ["poetry-core>=1.0.0"]
8791
build-backend = "poetry.core.masonry.api"
8892

8993

0 commit comments

Comments
 (0)