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.
Instalation
-----------
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
Don't Fudge Up
==============
Don't Fudge Up production with extra prints, import debug, or an erroneous pdb.set_trace.
Instalation
-----------
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.3.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for dont_fudge_up-0.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d6264e9a813bb745a2645aa6910c49a16bba7f12a33e96015dac0d12df1e2e8 |
|
MD5 | a5d485ee3adb5908037a919bca6686f3 |
|
BLAKE2b-256 | 047d7cb2f401daa9dc2ee98d24b25a84f77a5979d05e2f6cf96e0375b550d295 |