Skip to main content

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

Project description

pylint-requests

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

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 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.

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 pretty lint test

Bump new version

make bump_major
make bump_minor
make bump_patch

License

MIT

Change Log

0.1.0 - 2019-04-14

  • initial

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pylint-requests, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size pylint_requests-0.1.0-py3-none-any.whl (6.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pylint-requests-0.1.0.tar.gz (5.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page