Skip to content

Conversation

Daverball
Copy link
Contributor

Closes #1067

This adds a plugin matching the existing Ruff lint RUF035, including its two settings.

@Daverball
Copy link
Contributor Author

On an unrelated note: I've noticed that a lot of the call-related methods on Context (especially the ones for inspecting arguments) are completely broken. They're not used anywhere and their unit tests are heavily mocked. I'd suggest getting rid of them, since they only serve as pitfalls right now. If you want to keep them I would encourage you to switch to more representative tests using ast.parse.

Co-authored-by: Eric Brown <ericwb@users.noreply.github.com>
@ericwb ericwb merged commit 5e3e694 into PyCQA:main Feb 4, 2025
14 checks passed
@Daverball Daverball deleted the feat/markupsafe-xss branch February 5, 2025 07:00
MichaReiser added a commit to astral-sh/ruff that referenced this pull request Mar 11, 2025
…15957)

## Summary

`RUF035` has been backported into bandit as `S704` in this
[PR](PyCQA/bandit#1225)

This moves the rule and its corresponding setting to the `flake8-bandit`
category

## Test Plan

`cargo nextest run`

---------

Co-authored-by: Micha Reiser <micha@reiser.io>
MichaReiser added a commit to astral-sh/ruff that referenced this pull request Mar 13, 2025
…15957)

## Summary

`RUF035` has been backported into bandit as `S704` in this
[PR](PyCQA/bandit#1225)

This moves the rule and its corresponding setting to the `flake8-bandit`
category

## Test Plan

`cargo nextest run`

---------

Co-authored-by: Micha Reiser <micha@reiser.io>
MichaReiser added a commit to astral-sh/ruff that referenced this pull request Mar 13, 2025
…15957)

## Summary

`RUF035` has been backported into bandit as `S704` in this
[PR](PyCQA/bandit#1225)

This moves the rule and its corresponding setting to the `flake8-bandit`
category

## Test Plan

`cargo nextest run`

---------

Co-authored-by: Micha Reiser <micha@reiser.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flag markupsafe.Markup on non-literal content
3 participants