astral-sh / ruff

An extremely fast Python linter and code formatter, written in Rust.
https://docs.astral.sh/ruff
MIT License
30.42k stars 997 forks source link

Implement `flake8-requests` #2393

Open takkaria opened 1 year ago

takkaria commented 1 year ago

It's really nice to have a linter catch when you don't provide a timeout to a request call (r2c-requests-use-timeout).

Though I can't find it on GitHub, only on PyPi.

ngnpope commented 1 year ago

Looks like bento.dev no longer resolves and the Wayback Machine points to semgrep.dev...

Anyway, rules:

benjamb commented 2 months ago

I was about to suggest the same for flake8-timeout, but stumbled across this. The added bonus with flake8-timeout is that it also catches cases where no timeout is passed to urllib.request.open as well.