Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#11920 move mypy config to pyproject.toml #11921

Merged
merged 3 commits into from
Aug 28, 2023

Conversation

graingert
Copy link
Member

Scope and purpose

Fixes #11920

Comment on lines +579 to +618
[[tool.mypy.overrides]]
allow_untyped_defs = true
module = [
'twisted.application.test.test_service',
'twisted.python._pydoctor',
'twisted.python._release',
'twisted.python._shellcomp',
'twisted.python._textattributes',
'twisted.python.compat',
'twisted.python.components',
'twisted.python.context',
'twisted.python.deprecate',
'twisted.python.fakepwd',
'twisted.python.htmlizer',
'twisted.python.lockfile',
'twisted.python.log',
'twisted.python.monkey',
'twisted.python.procutils',
'twisted.python.randbytes',
'twisted.python.release',
'twisted.python.roots',
'twisted.python.shortcut',
'twisted.python.syslog',
'twisted.python.test.test_dist3',
'twisted.python.test.test_htmlizer',
'twisted.python.test.test_runtime',
'twisted.python.test.test_setup',
'twisted.python.test.test_textattributes',
'twisted.python.test.test_tzhelper',
'twisted.python.test.test_versions',
'twisted.python.test.test_win32',
'twisted.python.test.test_zippath',
'twisted.python.threadpool',
'twisted.python.zippath',
'twisted.runner.inetdtap',
'twisted.runner.procmontap',
'twisted.runner.inetdconf',
'twisted.runner.test.test_procmontap',
]

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[[tool.mypy.overrides]]
allow_untyped_defs = true
module = [
'twisted.application.test.test_service',
'twisted.python._pydoctor',
'twisted.python._release',
'twisted.python._shellcomp',
'twisted.python._textattributes',
'twisted.python.compat',
'twisted.python.components',
'twisted.python.context',
'twisted.python.deprecate',
'twisted.python.fakepwd',
'twisted.python.htmlizer',
'twisted.python.lockfile',
'twisted.python.log',
'twisted.python.monkey',
'twisted.python.procutils',
'twisted.python.randbytes',
'twisted.python.release',
'twisted.python.roots',
'twisted.python.shortcut',
'twisted.python.syslog',
'twisted.python.test.test_dist3',
'twisted.python.test.test_htmlizer',
'twisted.python.test.test_runtime',
'twisted.python.test.test_setup',
'twisted.python.test.test_textattributes',
'twisted.python.test.test_tzhelper',
'twisted.python.test.test_versions',
'twisted.python.test.test_win32',
'twisted.python.test.test_zippath',
'twisted.python.threadpool',
'twisted.python.zippath',
'twisted.runner.inetdtap',
'twisted.runner.procmontap',
'twisted.runner.inetdconf',
'twisted.runner.test.test_procmontap',
]

pretty sure this config block is redundant

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to delete this.
As long as mypy check is green, this should be ok.

Thanks

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll do this in a follow up I think

@graingert graingert marked this pull request as draft August 18, 2023 20:37
@graingert graingert marked this pull request as ready for review August 18, 2023 20:37
@chevah-robot chevah-robot requested a review from a team August 18, 2023 20:37
Copy link
Member

@adiroiban adiroiban left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the cleanup!

Please merge as you want :)

Comment on lines +579 to +618
[[tool.mypy.overrides]]
allow_untyped_defs = true
module = [
'twisted.application.test.test_service',
'twisted.python._pydoctor',
'twisted.python._release',
'twisted.python._shellcomp',
'twisted.python._textattributes',
'twisted.python.compat',
'twisted.python.components',
'twisted.python.context',
'twisted.python.deprecate',
'twisted.python.fakepwd',
'twisted.python.htmlizer',
'twisted.python.lockfile',
'twisted.python.log',
'twisted.python.monkey',
'twisted.python.procutils',
'twisted.python.randbytes',
'twisted.python.release',
'twisted.python.roots',
'twisted.python.shortcut',
'twisted.python.syslog',
'twisted.python.test.test_dist3',
'twisted.python.test.test_htmlizer',
'twisted.python.test.test_runtime',
'twisted.python.test.test_setup',
'twisted.python.test.test_textattributes',
'twisted.python.test.test_tzhelper',
'twisted.python.test.test_versions',
'twisted.python.test.test_win32',
'twisted.python.test.test_zippath',
'twisted.python.threadpool',
'twisted.python.zippath',
'twisted.runner.inetdtap',
'twisted.runner.procmontap',
'twisted.runner.inetdconf',
'twisted.runner.test.test_procmontap',
]

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to delete this.
As long as mypy check is green, this should be ok.

Thanks

@graingert graingert merged commit c565583 into twisted:trunk Aug 28, 2023
21 of 22 checks passed
@graingert graingert deleted the move-mypy-config-to-pyproject-toml branch August 28, 2023 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

move mypy config to pyproject.toml
3 participants