Skip to main content

flake8 plugin which checks that there is no use of sleep in the code.

Project description

flake8-sleep

flake8 plugin which checks that sleep is not used

flake8-sleep

flake8 plugin which checks for use of sleep function.

installation

Until pipy release, it will have to be done using git clone and local pip install:

git clone git@github.com:Nathanmalnoury/flake8-sleep.git
pip install ./flake8-sleep

flake8 codes

Code Description
SLP100 SLP100 sleep found
SLP101 SLP101 sleep used as a function name.

rationale

Using sleep function should be done carefully, as it will slow down an application. As such, one may want to mark every volountary usage of sleep with a noqa: SLPXXX and have a warning otherwise. s

as a pre-commit hook

Not available until pypi release.

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

flake8_sleep-0.0.1.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file flake8_sleep-0.0.1.tar.gz.

File metadata

  • Download URL: flake8_sleep-0.0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for flake8_sleep-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5e6ecce169487febb15d7c51b60bec59576123cfc62f956ea2767f10738c1776
MD5 a2cdabf75786746bc3f20b9bcfd25378
BLAKE2b-256 705076c995f374de440fb7562eb6cd2f51de58f10a931d4c5d9d5f3d7858c6fe

See more details on using hashes here.

Supported by

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