flake8-requests-0.4.0
توضیحات
Checks for the requests module, by r2c. Available in Bento (https://bento.dev).
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | flake8-requests-0.4.0 |
| نام | flake8-requests |
| نسخه کتابخانه | 0.4.0 |
| نگهدارنده | ['R2C'] |
| ایمیل نگهدارنده | ['hello@returntocorp.com'] |
| نویسنده | R2C |
| ایمیل نویسنده | hello@returntocorp.com |
| آدرس صفحه اصلی | https://bento.dev |
| آدرس اینترنتی | https://pypi.org/project/flake8-requests/ |
| مجوز | - |
# flake8-requests
flake8-requests is a plugin for flake8 with checks specifically for the [request](https://pypi.org/project/requests/) 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 when `auth` 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 to `requests` 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 a `requests` API method has been called without a timeout. `requests` will hang forever without a timeout; add a timeout to prevent this behavior.
نیازمندی
| مقدار | نام |
|---|---|
| >=3.7.9,<4.0.0 | flake8 |
| ==0.1.0b1 | r2c-py-ast |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6,<4.0 | Python |
نحوه نصب
نصب پکیج whl flake8-requests-0.4.0:
pip install flake8-requests-0.4.0.whl
نصب پکیج tar.gz flake8-requests-0.4.0:
pip install flake8-requests-0.4.0.tar.gz