flake8-eradicate
flake8 plugin to find commented out (or so called "dead") code.
This is quite important for the project in a long run.
Based on eradicate project.
Installation
pip install flake8-eradicate
Usage
Run your flake8 checker as usual.
Commented code should raise an error.
We prefer not to raise a warning than to raise a false positive.
So, we ignore --aggressive option from eradicate.
Error codes
| Error code | Description |
|---|---|
| E800 | Found commented out code |
Output example
» flake8 tests/fixtures/incorrect.py
tests/fixtures/incorrect.py:1:1: E800: Found commented out code:
--- before/tests/fixtures/incorrect.py
+++ after/tests/fixtures/incorrect.py
@@ -1,16 +1,10 @@
class Some(object):
- # property_name = 1
other_property = 2
-# def function_name():
-# return None
-# class CommentedClass(object):
# def __init__(self) -> None:
-# self.property = None
# def __str__(self) -> str:
-# return self.__class__.__name__
License
MIT.
Metadata
Release files for flake8-eradicate 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flake8-eradicate-0.2.0.tar.gz | 4.5 kB | Without provenance | Details for flake8-eradicate-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flake8_eradicate-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for flake8_eradicate-0.2.0-py3-none-any.whl |
Total release size: 11.1 kB
Release files / flake8-eradicate-0.2.0.tar.gz
| Download URL | flake8-eradicate-0.2.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c762fbb5c3e3694c9ba656d38477b2dcca6599b8baeee4984d05d655591a6f83
|
|
BLAKE2b-256 checksum How to use checksums |
e788d23b6b6630b578e9a6f0f36c9bc8ee3384ef1e14f6e91baab963c417a56b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.10 CPython/3.6.5 Darwin/18.2.0
|
Release files / flake8_eradicate-0.2.0-py3-none-any.whl
| Download URL | flake8_eradicate-0.2.0-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0953cd3bcae4bfd04d45075234e0b5fd465ff50ecc56cdcaf0027da751632127
|
|
BLAKE2b-256 checksum How to use checksums |
2f5e9e38331c039c7821137f78d9960e61683351675cf01134e57dc66f1e3ada
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/0.12.10 CPython/3.6.5 Darwin/18.2.0
|
Security for flake8-eradicate 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.