-
-
Notifications
You must be signed in to change notification settings - Fork 129
Add mypy-plugin extra dependency #1605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add mypy-plugin extra dependency #1605
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer this name: https://github.com/typeddjango/django-stubs#installation
22bf87d
to
f4d0905
Compare
Should be fine now |
Codecov Report
@@ Coverage Diff @@
## master #1605 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 79 79
Lines 2494 2494
Branches 434 158 -276
==========================================
Hits 2494 2494 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Need some help here with the failure on py37. Vry probable that this failure is not related to the merge request |
pyproject.toml
Outdated
@@ -48,6 +48,7 @@ _ = "returns.contrib.hypothesis._entrypoint" | |||
python = "^3.7" | |||
|
|||
typing-extensions = ">=4.0,<5.0" | |||
mypy = { version = "^1.2", optional = true } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can now remove mypy
from dev-dependencies
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you think so? In this case, poetry install
won't install mypy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we remove the mypy from the dev-dependencies, then in order to let the mypy installed, we need to do:
$ poetry install --extras compatible-mypy
Otherwise mypy won't be installed. If we have the mypy of the same version in the dev dependencies, then poetry install
will install it (because dev deps are included when poetry install).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f4d0905
to
1c77547
Compare
e4881d1
to
ca4548b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, update mypy to ^1.4.0
and I will be happy to merge it!
1ec2722
to
df7170a
Compare
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.
df7170a
to
3b905ef
Compare
@sobolevn seems like all done now |
use
pip install classes[compatible-mypy]
for installing additional dependencies required by the mypy-plugin.I have made things!
Checklist
CHANGELOG.md
Related issues
🙏 Please, if you or your company finds
dry-python
valuable, help us sustain the project by sponsoring it transparently on https://github.com/sponsors/dry-python. As a thank you, your profile/company logo will be added to our main README which receives hundreds of unique visitors per day.