Skip to content

#11920 move mypy config to pyproject.toml#11921

Merged
graingert merged 3 commits intotwisted:trunkfrom
graingert:move-mypy-config-to-pyproject-toml
Aug 28, 2023
Merged

#11920 move mypy config to pyproject.toml#11921
graingert merged 3 commits intotwisted:trunkfrom
graingert:move-mypy-config-to-pyproject-toml

Conversation

@graingert
Copy link
Copy Markdown
Member

Scope and purpose

Fixes #11920

Comment thread pyproject.toml
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@graingert graingert requested a review from adiroiban August 28, 2023 10:02
Copy link
Copy Markdown
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 thread pyproject.toml
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
Copy Markdown
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
@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