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
Release history Release notifications | RSS feed
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 hashes)