A pylint plugin to check for common issues with usage of requests
Project description
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 runningpylint
with incorrectPYTHONPATH
, (b) you forgot to installrequests
, or (c) you aren't usingrequests
and 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
AttributeInferenceError
on optional function parameters
0.1.0 - 2019-04-14
- initial
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
pylint-requests-0.1.1.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for pylint_requests-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5367c07727561b462708beb5a467173a9e3e134f9db3496dca59c35b2212a826 |
|
MD5 | 2282e5823e893b2939ed13354a57dc9d |
|
BLAKE2b-256 | 73f93cf5bd97728489558bdaef81b92486a6af6fbebee2fd4245c98ef97b9879 |