[](https://pypi.python.org/pypi/pytest-eradicate/)
pytest-eradicate
[Pytest](http://pytest.org/) plugin for detecting commented out code in python files.
Changes
0.0.5 added compatability for Pytest 5.4 and higher
0.0.4 made eradicate 1.0 compatible, added –agressive (thanks to @avallbona)
Usage
install via:
pip install pytest-eradicate
if you then type:
pytest --eradicate
every file ending in .py will be discovered and checked for commented out code.
There is also the option:
pytest --eradicate --aggressive
make more aggressive changes. This may result in false positives. Added in order to update to the last version of eradicate like it seems to be the default mode.
Eradicate
Eradicate is a tool to detect commented out code in Python files.
[Eradicate Github](https://github.com/myint/eradicate)
As the developer states commented out code has no place in your repository.
Besides that, commented out code is often an indicator for debug statements left behind or code moved out of the way during development.
Release files for pytest-eradicate 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytest-eradicate-0.0.5.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_eradicate-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.1 kB
Release files / pytest-eradicate-0.0.5.tar.gz
| Download URL | pytest-eradicate-0.0.5.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9917fd59de443d8ed0ed25cddc2aaf1ffd877082ca99216c8c8b6b8893a8e4e
|
|
BLAKE2b-256 checksum How to use checksums |
435d781449036522eb75964cd1ff0a5af022f57627c53640668a9c5ade6d1453
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Release files / pytest_eradicate-0.0.5-py3-none-any.whl
| Download URL | pytest_eradicate-0.0.5-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
263cc3e8cc9fcbbd0f949c9c4a45fb753fdfe3672dab13dad47f3357ee9301c8
|
|
BLAKE2b-256 checksum How to use checksums |
c5d73287a9e8716ecc02b5072ead453d553c2bd92170143546d6bff87473a02a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|