Checks for the requests module, by r2c. Available in Bento (https://bento.dev).
flake8-requests is a plugin for flake8 with checks specifically for the request framework.
pip install flake8-requests
Validate the install using
--version. flake8-requests adds two plugins, but this will be consolidated in a very near-future version. :)
> flake8 --version 3.7.9 (mccabe: 0.6.1, pycodestyle: 2.5.0, pyflakes: 2.1.1, flake8-requests)
List of warnings
r2c-requests-no-auth-over-http: Alerts when
authparam is possibly used over http://, which could expose credentials. See more documentation at https://checks.bento.dev/en/latest/flake8-requests/r2c-requests-no-auth-over-http/
r2c-requests-use-scheme: Alerts when URLs passed to
requestsAPI methods dont have a URL scheme (e.g., https://), otherwise an exception will be thrown. See more documentation at https://checks.bento.dev/en/latest/flake8-requests/r2c-requests-use-scheme/
r2c-requests-use-timeout: This check detects when a
requestsAPI method has been called without a timeout.
requestswill hang forever without a timeout; add a timeout to prevent this behavior.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size flake8_requests-0.4.0-py3-none-any.whl (8.8 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size flake8-requests-0.4.0.tar.gz (5.5 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for flake8_requests-0.4.0-py3-none-any.whl