Skip to main content

Find operations that might fudge up production, like a pdb.set_trace

Project description

==============
Don't Fudge Up
==============

Don't Fudge Up production with extra prints, import debug, or an erroneous pdb.set_trace.

Installation
------------
such pip so wow::

$ pip install dont-fudge-up

Flake8
------
The plug-in will automatically register with Flake8::

$ flake8 --version
2.1.0 (pep8: 1.5.6, dfu: 1.0.0, pyflakes: 0.8.1, mccabe: 0.2.1) CPython 2.7.6
# see it here -------^

Pylint
------

It should work something like this::

$ pylint --load-plugins=dfu.pylint tests/input.py

Error Codes
-----------

D000: stylistically bad for production but mostly harmless
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

D001
raised on leaving a print statement in the code

D100: warnings which effect production performance but are usually not fatal
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

D101
Cautioned import for production
::
import pdb # on its own, harmless...

D102
set_trace may be fatal in production (set_trace might be from pdb)

D500: errors that are forbidden for production and are near always fatal
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


D501
Forbidden import for production
::
import debug # woah there cowboy, that's an issue

D502
pdb.set_trace is forbidden in production

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

dont-fudge-up-0.0.6.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

dont_fudge_up-0.0.6-py2.py3-none-any.whl (25.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file dont-fudge-up-0.0.6.tar.gz.

File metadata

File hashes

Hashes for dont-fudge-up-0.0.6.tar.gz
Algorithm Hash digest
SHA256 2b63c9383b1649554d2e9c6ca3f7d543da8cf900da185a6a1b03fc5980eda114
MD5 a978f7acaf7389477b38a1bda486bd92
BLAKE2b-256 293b9d7252e968f5c625eb3ce8e94722fef4eb5e2464c563ef179191a96e373e

See more details on using hashes here.

File details

Details for the file dont_fudge_up-0.0.6-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for dont_fudge_up-0.0.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 025c1177d7a794576a4d219c0b317c185a16d2087138050acc7ff0b8237b5227
MD5 d2fc7e87d612d59558eae1ff070cbc0d
BLAKE2b-256 7c497d71b1eed7635e3edeb1d8cd652d9f898d3faa3d5b0247e1c16d4e6b3066

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