question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vfdev-5commented, Sep 15, 2020

so the ideia is to add the mypy check inside of Lint check stage, right?

@kenjihiraoka that’s right.

And by now, can I skip all errors?

Let’s see which files are directly passing and ignore for others.

1reaction
vfdev-5commented, Sep 14, 2020

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

September is Preptember – a full month for maintainers to groom your repositories and for contributors to learn about making quality pull requests.

Contributions during September don’t count toward Hacktoberfest. Only pull requests submitted between October 1st to 31st will count.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found