Skip to main content

pytest plugin to check for commented out code

Project description

[![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.

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

pytest-eradicate-0.0.5.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

pytest_eradicate-0.0.5-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file pytest-eradicate-0.0.5.tar.gz.

File metadata

  • Download URL: pytest-eradicate-0.0.5.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pytest-eradicate-0.0.5.tar.gz
Algorithm Hash digest
SHA256 c9917fd59de443d8ed0ed25cddc2aaf1ffd877082ca99216c8c8b6b8893a8e4e
MD5 5561d80a2b20a8b31794ea80a44d66d7
BLAKE2b-256 435d781449036522eb75964cd1ff0a5af022f57627c53640668a9c5ade6d1453

See more details on using hashes here.

File details

Details for the file pytest_eradicate-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: pytest_eradicate-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pytest_eradicate-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 263cc3e8cc9fcbbd0f949c9c4a45fb753fdfe3672dab13dad47f3357ee9301c8
MD5 ce7ff82781ae377fe76906deebc93340
BLAKE2b-256 c5d73287a9e8716ecc02b5072ead453d553c2bd92170143546d6bff87473a02a

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