Setup mypy type checking in CI
See original GitHub issue🚀 Feature
Idea is to setup type checking of the codebase with mypy with our Travis CI (here) :
mypy --config-file mypy.ini
-
At the first iteration we can ignore most of the errors with
mypy.ini
. Example of mypy.ini. => done #1296 -
For other iterations, let’s set
ignore_errors = False
for a module (e.g.[mypy-ignite.utils.*]
) (see mypy.ini) and fix mypy errors.
For Hacktoberfest contributors, feel free to ask questions for details if any and say that you would like to tackle the issue. Please, take a look at CONTRIBUTING guide.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How to start type-checking a large Python codebase - Quantlane
Sharpen your tools: how to configure mypy before you start ; Ensure full coverage · disallow_untyped_calls · True ; Restrict dynamic typing (a ......
Read more >Using mypy with an existing codebase
Checking a mypy configuration file into your codebase can help with this. Make sure everyone type checks the same set of files. See...
Read more >Mypy and Continuous Integration sequence part 1 - Medium
type checking in python is an optional process before the compiler that requires an auxiliary tool called Mypy. or hand it a directory...
Read more >How to add Mypy to your project | Code Cookbook
1. Setup · 2. Validate types · 3. Add to CI/CD pipeline.
Read more >Using mypy for Python type checking - MLOps.systems
You can configure mypy to your heart's desire either with inline comments in your code, or via a configuration file. A configuration file...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kenjihiraoka that’s right.
Let’s see which files are directly passing and ignore for others.
Hi @kenjihiraoka thanks for your interest on working on this issue 😃
I can assign it to you and you can start working on that. As the issue may be large, feel free to submit several PRs.
PS: Notes for Hacktoferfest