Skip to content

Commit 4a30558

Browse files
authored
[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`
1 parent 16acd49 commit 4a30558

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

crates/ruff_linter/src/rules/flake8_bandit/rules/request_without_timeout.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub(crate) fn request_without_timeout(checker: &mut Checker, call: &ast::ExprCal
5858
qualified_name.segments(),
5959
[
6060
"requests",
61-
"get" | "options" | "head" | "post" | "put" | "patch" | "delete"
61+
"get" | "options" | "head" | "post" | "put" | "patch" | "delete" | "request"
6262
]
6363
)
6464
})

python/ruff-ecosystem/ruff_ecosystem/check.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
Project,
3737
)
3838

39-
4039
# Matches lines that are summaries rather than diagnostics
4140
CHECK_SUMMARY_LINE_RE = re.compile(r"^(Found \d+ error.*)|(.* fixable with .*)$")
4241

0 commit comments

Comments
 (0)