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.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2de082b201a1f65369961954e65628e665398417d941016e65b10932f854b51c |
|
MD5 | 51c8274adf4e1210bfff8a5ef36e394d |
|
BLAKE2b-256 | 1e4ce3c3a234234313eca997ec2b117ab14269249ddd0469731396d3d066ff42 |
Close
Hashes for flake8_useless_assert-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e425d69a4aaf17da43d533e34d85e4436a091727a216a3e15d33dfdafbf1e6f6 |
|
MD5 | 3d8cb2e54faaff2a05038abd5197b98e |
|
BLAKE2b-256 | 63edfec3bc8657a46d3f19412b43bf4bdd2947e6989c76bd582d9955efc620fa |