flake8 plugin to catch useless `assert` statements
Project description
flake8-useless-assert
flake8 plugin to catch useless assert
statements
Examples of what it will flag
assert "string literal"
assert 0x2a
assert "call to {0}".format("format")
assert f"f-{str}ing"
assert True
assert ...
Testing
I haven't set up proper testing yet, but you can run poetry install
and then:
flake8 examples/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for flake8-useless-assert-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6f121a1a137d2abb884a1a875d818fc1e590ddf0b683011553e0f2366cba34b |
|
MD5 | 93b1962002f59f090d6dca7f09a08060 |
|
BLAKE2b-256 | 7edc6e59a4ae3808e86be2c87ed2215f1f0217348b8e1e4c56822dd2ba3471ed |
Close
Hashes for flake8_useless_assert-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1b24c6dcaa138eef9451308588580cb283e63a96c87e2a8bea2c9490a4730fe |
|
MD5 | adc155ad894d0a9ee7b0c2bce9708dba |
|
BLAKE2b-256 | 4577840914f4f3898356729e7109a464f42ba36d10051390e605ed5e433c0dbe |