-
Notifications
You must be signed in to change notification settings - Fork 3
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 #167
base: master
Are you sure you want to change the base?
Add mypy #167
Conversation
702e150
to
7bf6f9e
Compare
setup.cfg
Outdated
|
||
[mypy-django.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-django_countries.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-django_filters.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-mptt.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-rest_framework.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-rest_framework_gis.*] | ||
ignore_missing_imports = 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.
why are these necessary?
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.
mypy raises import errors for third party packages that it cannot find, had to silence them so that they do not cause the checks to fail.
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.
Hmmm, I am hesitant about this - because I am strongly against relaxing linting rules. Some questions:
- why cant mypy find these packages (I ask this because I have used it elsewhere and not gotten into this problem)?
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.
Hmmm, I am hesitant about this - because I am strongly against relaxing linting rules. Some questions:
* why cant mypy find these packages (I ask this because I have used it elsewhere and not gotten into this problem)?
Seems like this was just a blunder on my side. Was running it outside of my virtualenv.
After running it in the virtualenv it doesn't seem to raise any errors without the config. I'll make the change.
7bf6f9e
to
aa7a982
Compare
aa7a982
to
961d786
Compare
Changes / Features implemented
Steps taken to verify this change does what is intended
Side effects of implementing this change
Closes #151