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


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.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

pylint_requests-0.1.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file pylint-requests-0.1.0.tar.gz.

File metadata

  • Download URL: pylint-requests-0.1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.12 CPython/3.6.3 Linux/4.4.0-101-generic

File hashes

Hashes for pylint-requests-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d0e6a222acf0c596ffe8484ceec2772ad403152ed5be6ef8b03e83e23c85ae66
MD5 a2ffd14dbdf4fc1784a4e8afa81320d7
BLAKE2b-256 d69b21edd9684786c32aeb71fe8f872c29fe282b649b7663d9bc4dd0ae549761

See more details on using hashes here.

File details

Details for the file pylint_requests-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pylint_requests-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.12 CPython/3.6.3 Linux/4.4.0-101-generic

File hashes

Hashes for pylint_requests-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cdc78bde6f9d25aa0d3e990d999104cc9d9d8f619f4a99de4f9246547c293793
MD5 f7256dd78bea6eba042a678e165fdfe3
BLAKE2b-256 6ed0d0e3d82544fd873bd4b468d2d97f2bbd554cfc5bc61a7231bc2be490d6af

See more details on using hashes here.

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