Improve type-checker mypy configuration #298
Labels
part:template
Affects the cookiecutter template files
part:tooling
Affects the development tooling (CI, deployment, dependency management, etc.)
priority:high
Address this as soon as possible
type:enhancement
New feature or enhancement visitble to users
Milestone
What's needed?
The type checker
mypy
is configured to check specific packages within a repository. In practice, there are repositories that contain more than one package. This setup is not ideal because typically only one package is configured to be type-checked bymypy
. As a result, parts of the codebase may not be checked, leading to potential type-related issues going unnoticed.To ensure type-checking, all relevant packages should be included in the
mypy
configuration. This would help in maintaining type consistency and catching errors across the entire codebase.Proposed solution
Replace the setting of packages and use
files
andmypy_path
instead as follows:Current configuration:
to be replaced by:
This will ensure the codebase is fully type-checked (at least for any file within
src
andtests
) without the need for the user to set explicitly the packages.Use cases
No response
Alternatives and workarounds
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: