Checks for the requests module, by r2c. Available in Bento (https://bento.dev).
Project description
flake8-requests
flake8-requests is a plugin for flake8 with checks specifically for the request framework.
Installation
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 whenauth
param 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 torequests
API 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 arequests
API method has been called without a timeout.requests
will hang forever without a timeout; add a timeout to prevent this behavior.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flake8-requests-0.4.0.tar.gz
(5.5 kB
view details)
Built Distribution
File details
Details for the file flake8-requests-0.4.0.tar.gz
.
File metadata
- Download URL: flake8-requests-0.4.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.17 CPython/3.7.5 Darwin/19.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1230144d5cb091e4640711687c3ef674fb628231bc96073eaca9561ddaa69ca |
|
MD5 | 61ecf0b14ba1cf47d85587e703dcd1e0 |
|
BLAKE2b-256 | 9d67fd7ed22c36b925c79fccf683631822ceb0fcaec4b23ebce84c331583b983 |
File details
Details for the file flake8_requests-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: flake8_requests-0.4.0-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.17 CPython/3.7.5 Darwin/19.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6fb781d06dbc9b9b54a29a633ea35b91e2d68d291d66523cdd2adc02256ad1c |
|
MD5 | a12e1d50405c7965172be78794ee8a17 |
|
BLAKE2b-256 | 38d791f9d996f379ca915aacc8e0c7a36636d3662fb0eb2be1c2762d75aafdfe |