Skip to content

Fix enhable/disable on mypy tool#729

Merged
Pierre-Sassoulas merged 1 commit intomasterfrom
fix-mypy-enable-disable-rules
Feb 27, 2025
Merged

Fix enhable/disable on mypy tool#729
Pierre-Sassoulas merged 1 commit intomasterfrom
fix-mypy-enable-disable-rules

Conversation

@sbrunner
Copy link
Copy Markdown
Member

@sbrunner sbrunner commented Feb 27, 2025

Description

Currently, the enable/disable options have no effect on mypy tool => fix it

See also: https://mypy.readthedocs.io/en/stable/command_line.html#cmdoption-mypy-disable-error-code

Motivation and Context

Have a good support of mypy :-)

How Has This Been Tested?

Added the following config on Prospector project:

mypy:
  disable:
    - misc
    - attr-defined
    - no-any-return
  options:
    strict: true

and run-it :-)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@sbrunner sbrunner marked this pull request as ready for review February 27, 2025 08:52
@Pierre-Sassoulas Pierre-Sassoulas merged commit c800e01 into master Feb 27, 2025
5 checks passed
@sbrunner
Copy link
Copy Markdown
Member Author

Thanks :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants