Skip to content

Commit

Permalink
[flake8-bandit] request-without-timeout should warn for `requests…
Browse files Browse the repository at this point in the history
….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`
  • Loading branch information
akshetpandey authored May 28, 2024
1 parent 16acd49 commit 4a30558
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
)
})
Expand Down
1 change: 0 additions & 1 deletion python/ruff-ecosystem/ruff_ecosystem/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
Project,
)


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

Expand Down

0 comments on commit 4a30558

Please sign in to comment.