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

Use ruff to lint for f-string doc strings in Pants repo #21018

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

huonw
Copy link
Contributor

@huonw huonw commented Jun 6, 2024

This continues #20984 by linting against that problem: a docstring should never be an f-strings, as it is silently ignored by the Python interpreter.

This configures linting against this by activating the ruff backend in this repo, and enabling the specific rule against it https://docs.astral.sh/ruff/rules/f-string-docstring/

Alternative: add flake8-bugbear to flake8.

@huonw huonw added the category:internal CI, fixes for not-yet-released features, etc. label Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:internal CI, fixes for not-yet-released features, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant