[flake8-bandit] request-without-timeout should warn for requests.request#11548
Merged
charliermarsh merged 4 commits intoastral-sh:mainfrom May 28, 2024
akshetpandey:patch-1
Merged
[flake8-bandit] request-without-timeout should warn for requests.request#11548charliermarsh merged 4 commits intoastral-sh:mainfrom akshetpandey:patch-1
flake8-bandit] request-without-timeout should warn for requests.request#11548charliermarsh merged 4 commits intoastral-sh:mainfrom
akshetpandey:patch-1
Conversation
…` call without timeout
Member
|
This seems reasonable though it's surprising that Bandit itself does not check this method. |
Contributor
|
| code | total | + violation | - violation | + fix | - fix |
|---|---|---|---|---|---|
| S113 | 3 | 3 | 0 | 0 | 0 |
Linter (preview)
ℹ️ ecosystem check detected linter changes. (+3 -0 violations, +0 -0 fixes in 2 projects; 48 projects unchanged)
apache/airflow (+1 -0 violations, +0 -0 fixes)
ruff check --no-cache --exit-zero --ignore RUF9 --output-format concise --preview --select ALL
+ docker_tests/test_docker_compose_quick_start.py:44:16: S113 Probable use of requests call without timeout
zulip/zulip (+2 -0 violations, +0 -0 fixes)
ruff check --no-cache --exit-zero --ignore RUF9 --output-format concise --preview --select ALL
+ zerver/tests/test_internet.py:14:22: S113 Probable use of requests call without timeout + zerver/tests/test_internet.py:26:22: S113 Probable use of requests call without timeout
Changes by rule (1 rules affected)
| code | total | + violation | - violation | + fix | - fix |
|---|---|---|---|---|---|
| S113 | 3 | 3 | 0 | 0 | 0 |
Formatter (stable)
✅ ecosystem check detected no format changes.
Formatter (preview)
✅ ecosystem check detected no format changes.
requests.request without timeoutflake8-bandit] request-without-timeout should warn for requests.request
charliermarsh
approved these changes
May 28, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Update S113 to also warns for missing timeout on when calling
requests.request