Unifying Tool Directives in Python Comments
Discussions on Python.org
Unifying Tool Directives in Python Comments
Dear Friends, I recently noticed a recurring pattern in Python develop toolchains that seems worth discussing: Python tooling has accumulated a growing number of tiny, tool-specific DSLs hidden inside comments: # pylint: ... # mypy: ... # pyright: ... # noqa # ruff: ... # fmt: ... # isort: ... and many others. Even Python itself has special comment-based syntax, such as type comments and # type: ignore[...], which are treated specially by the parser and AST. These constructs are no l...
0 comments
No comments yet.