-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[ruff
] Adds an allowlist for unsafe-markup-use
(RUF035
)
#15076
[ruff
] Adds an allowlist for unsafe-markup-use
(RUF035
)
#15076
Conversation
# indirect assignments are currently not supported | ||
cleaned = clean(content) | ||
Markup(cleaned) # RUF035 |
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.
I considered making this work. But then we should probably also make the same thing work with string/bytes literals. At which point I would have to change some of the examples, so they still make sense. So I held off for now.
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.
I think it's fine for now to limit this to only direct calls.
|
ruff
] Adds a whitelist for unsafe-markup-use
.ruff
] Adds an allowlist for unsafe-markup-use
.
ruff
] Adds an allowlist for unsafe-markup-use
.ruff
] Adds an allowlist for unsafe-markup-use
(RUF035
)
Closes: #14523
Summary
Adds a whitelist of calls allowed to be used within a
markupsafe.Markup
call.Test Plan
cargo nextest run