You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running mypy with a pyproject.toml configuration that uses the [[tool.mypy.overrides]] section to exclude specific modules, the specified modules are still being type-checked, contrary to expectations.
Steps to Reproduce:
Set up a pyproject.toml with mypy configurations using the [[tool.mypy.overrides]] section to exclude a specific module:
# test_module/sample.py
def faulty_function() -> int:
return "This should be an integer!"
Run mypy with the provided configuration:
mypy test_module/ --config-file pyproject.toml
Expected Behavior:
The module test_module.sample should be excluded from type-checking and no errors should be reported.
Actual Behavior:
mypy reports type errors from the module test_module.sample, indicating that it is not being excluded as specified in the configuration.
Mypy Version: 1.6.1
The text was updated successfully, but these errors were encountered:
When running mypy with a pyproject.toml configuration that uses the [[tool.mypy.overrides]] section to exclude specific modules, the specified modules are still being type-checked, contrary to expectations.
Steps to Reproduce:
Set up a pyproject.toml with mypy configurations using the [[tool.mypy.overrides]] section to exclude a specific module:
Have a sample module with evident type errors:
Run mypy with the provided configuration:
mypy test_module/ --config-file pyproject.toml
Expected Behavior:
The module test_module.sample should be excluded from type-checking and no errors should be reported.
Actual Behavior:
mypy reports type errors from the module test_module.sample, indicating that it is not being excluded as specified in the configuration.
Mypy Version: 1.6.1
The text was updated successfully, but these errors were encountered: