pylint-requests
Description
A pylint plugin to check for common issues with usage of requests.
Currently the following errors are reported:
F7801 (requests-not-available)
Reported if this plugin failed to importrequests. This means that: (a) you are runningpylintwith incorrectPYTHONPATH, (b) you forgot to installrequests, or (c) you aren't usingrequestsand don't need the plugin.E7801 (request-without-timeout)
Reported if a HTTP call (e.g.requests.get) without a timeout is detected.
Installation
pip install pylint-requests
Usage
Use pylint's --load-plugins option to enable the plugin:
pylint --load-plugins=pylint_requests <your_code>
For developers
Install deps and setup pre-commit hook
make init
Run linters, autoformat, tests etc.
make format lint test
Bump new version
make bump_major
make bump_minor
make bump_patch
License
MIT
Change Log
Unreleased
...
0.1.1 - 2020-05-07
- fix crash with
AttributeInferenceErroron optional function parameters
0.1.0 - 2019-04-14
- initial
Release files for pylint-requests 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pylint-requests-0.1.1.tar.gz | 5.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pylint_requests-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.1 kB
Release files / pylint-requests-0.1.1.tar.gz
| Download URL | pylint-requests-0.1.1.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d535f7d4ffe69d200d358246569b8b4ff937f82c156410a7d462fee327c8bc3
|
|
BLAKE2b-256 checksum How to use checksums |
e695f5f3a7a36ab514a53f0c61d86a8e63b8e18c5c67435bd4f1f8fd3728af65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.8.0 Linux/4.15.0-1028-gcp
|
Release files / pylint_requests-0.1.1-py3-none-any.whl
| Download URL | pylint_requests-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5367c07727561b462708beb5a467173a9e3e134f9db3496dca59c35b2212a826
|
|
BLAKE2b-256 checksum How to use checksums |
73f93cf5bd97728489558bdaef81b92486a6af6fbebee2fd4245c98ef97b9879
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.8.0 Linux/4.15.0-1028-gcp
|