-
-
Notifications
You must be signed in to change notification settings - Fork 173
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
Enforce mypy typechecking in CI #332
Comments
I've found flake8 to have too may false positives as it only has a superficial understanding of the code. We do have typechecking in the project with mypy, which is far better at detecting issues in my experience. For instance mypy would know the difference between a star import and undefined symbol. We don't have the mypy check in the CI though, and we really should. A few mypy errors have crept in since I last checked, so that needs to be addressed. @chfw I'm going to accept this issue, but change the title... |
Mypy issues fixed in master. |
Thanks for accepting my issue. Yes, mypy definitely will help enforce the type check and help reducing runtime erros. 👍 With your attention, please allow me to explain a bit on the positive side of flake8. I am pleased already and I am not going to push like a nut :). That's only me so I would not like to push everyone. My emacs or pycharm will flag up lines to indicate potential problems. Normally, you would like to have no red lines at a glance. Take tools.py as an example, the IDE tells it has some problems: imported but not used. Yet again, let me stress that my thanks for accepting my feedback. I am pleased that you took further action. It is appreciated! |
I'm all for linting in the development environment. I use pylint in VSCode, which for some reason isn't picking up unused imports. |
Hi all,
This project's PR template reads very interesting:
I accept that @willmcgugan may be pedantic in the code review.
I wondered if adding flake8 check to such a cool project would support the word: 'pedantic', strongly. Is there a good reason not to have flake8?
Here is what flake8 tells about the files:
The text was updated successfully, but these errors were encountered: