Skip to main content

A pylint plugin to check for common issues with usage of requests

Project description


pypi Python: 3.6+ Downloads Build Status Code coverage License: MIT Code style: black


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 import requests. This means that: (a) you are running pylint with incorrect PYTHONPATH, (b) you forgot to install requests, or (c) you aren't using requests 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>

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



Change Log



0.1.1 - 2020-05-07

  • fix crash with AttributeInferenceError on optional function parameters

0.1.0 - 2019-04-14

  • initial

Project details

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)

Uploaded source

Built Distribution

pylint_requests-0.1.1-py3-none-any.whl (6.6 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page