Summary
Description:
ruff check --select S501 correctly flags verify=False on convenience methods (requests.get(), requests.post(), etc.) but misses the same argument on requests.request(), which is the generic method all convenience methods delegate to.
Reproduction:
# Detected
requests.get("https://example.com", verify=False)
# Not detected
requests.request("GET", "https://example.com", verify=False)
Expected: Both calls should trigger S501.
Impact: Code using requests.request() with verify=False silently passes linting
Summary
Description:
ruff check --select S501correctly flagsverify=Falseon convenience methods (requests.get(),requests.post(), etc.) but misses the same argument onrequests.request(), which is the generic method all convenience methods delegate to.Reproduction:
Expected: Both calls should trigger S501.
Impact: Code using
requests.request()withverify=Falsesilently passes linting