Skip to main content

[![pypi](https://img.shields.io/pypi/v/pytest-eradicate.svg)](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)

Source distribution for pytest-eradicate 0.0.5
File Size Uploaded
pytest-eradicate-0.0.5.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-eradicate 0.0.5
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page