Skip to main content

pytest plugin to check for commented out code

Project description

[Pytest](http://pytest.org/) plugin for detecting commented out code in python files.

Changes

  • 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.4.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

pytest_eradicate-0.0.4-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest-eradicate-0.0.4.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for pytest-eradicate-0.0.4.tar.gz
Algorithm Hash digest
SHA256 ed0fcda6c72a773eb1fd62ad68f1665ad28ed8b8c2cd46472589e7b01a2057ac
MD5 6505717bf657a3d15d6f321b5b4868a7
BLAKE2b-256 e1f50c0216df94fa894cc7dad869c755c4054087ec5d30eb9e812e60ae2a47da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytest_eradicate-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for pytest_eradicate-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 bac55c3185041d7f7c54e41804bb331973b8bc381bce644a871c1a6b76b95971
MD5 40df1b518ff116c89efc25848a23a804
BLAKE2b-256 1ccf56588b474e39163868f56f9445dca65ce6a311e3080c2149dc8bfc0bad48

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