mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:04 +00:00
[flake8-bandit
] request-without-timeout
should warn for requests.request
(#11548)
## Summary Update [S113](https://docs.astral.sh/ruff/rules/request-without-timeout/) to also warns for missing timeout on when calling `requests.request`
This commit is contained in:
parent
16acd4913f
commit
4a305588e9
2 changed files with 1 additions and 2 deletions
|
@ -58,7 +58,7 @@ pub(crate) fn request_without_timeout(checker: &mut Checker, call: &ast::ExprCal
|
|||
qualified_name.segments(),
|
||||
[
|
||||
"requests",
|
||||
"get" | "options" | "head" | "post" | "put" | "patch" | "delete"
|
||||
"get" | "options" | "head" | "post" | "put" | "patch" | "delete" | "request"
|
||||
]
|
||||
)
|
||||
})
|
||||
|
|
|
@ -36,7 +36,6 @@ if TYPE_CHECKING:
|
|||
Project,
|
||||
)
|
||||
|
||||
|
||||
# Matches lines that are summaries rather than diagnostics
|
||||
CHECK_SUMMARY_LINE_RE = re.compile(r"^(Found \d+ error.*)|(.* fixable with .*)$")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue