Skip to content

[flake8-bandit, flake8-async] Extend to cover httpx2 - #30442

Open
StefanBRas wants to merge 2 commits into
astral-sh:mainfrom
StefanBRas:sras/httpx2
Open

StefanBRas wants to merge 2 commits into
astral-sh:mainfrom
StefanBRas:sras/httpx2

Conversation

@StefanBRas

Copy link
Copy Markdown
Contributor

Summary

closes #28063

Extends the following rules to also cover calls made with httpx2:

  • ASYNC210
  • ASYNC212
  • S501
  • S113

To the best of my knowledge, these are all the rules related to httpx

Notes to reviewers

I'm not sure if you would like another approach in crates/ruff_linter/src/rules/flake8_async/rules/blocking_http_call_httpx.rs. It might look like I try to be fancy, but I weren't sure how to return the specific package while still upholding the signature for the TypeChecker trait.

All tests are just the already existing httpx ones duplicated and renamed.

AI disclosure: No AI.

This branch has not been deployed

No deployments
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.

Extend blocking-http-call-httpx-in-async-function (ASYNC212) to also cover httpx2

1 participant