-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[flake8-pyi
] Add autofix for docstring-in-stub
(PYI021
)
#14150
Conversation
The fix does not always result in optimal output, but IIRC these kinds of problems are for the formatter to solve. class Foo:
- """Foo""" # qux
+ # qux |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
crates/ruff_linter/src/rules/flake8_pyi/rules/docstring_in_stubs.rs
Outdated
Show resolved
Hide resolved
crates/ruff_linter/src/rules/flake8_pyi/rules/docstring_in_stubs.rs
Outdated
Show resolved
Hide resolved
...src/rules/flake8_pyi/snapshots/ruff_linter__rules__flake8_pyi__tests__PYI021_PYI021.pyi.snap
Outdated
Show resolved
Hide resolved
…_rules__flake8_pyi__tests__PYI021_PYI021.pyi.snap Co-authored-by: Micha Reiser <[email protected]>
…bs.rs Co-authored-by: Micha Reiser <[email protected]>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
flake8-pyi
] Remove docstring fix (PYI021
)flake8-pyi
] Add autofix for docstring-in-stub
(PYI021
)
Summary
Resolves #14123.
Test Plan
cargo nextest run
andcargo insta test
.