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.
pip install pylint-requests
Use pylint's --load-plugins
option to enable the plugin:
pylint --load-plugins=pylint_requests <your_code>
make init
make format lint test
make bump_major
make bump_minor
make bump_patch
MIT
Unreleased
- require at least Python 3.8.1
0.1.1 - 2020-05-07
- fix crash with
AttributeInferenceError
on optional function parameters
0.1.0 - 2019-04-14
- initial