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.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d4f37c4d5c88badfe304cf51c48f891aa3ccdf578eaa699c99bdaeed7b3da36 |
|
MD5 | d71ea5afef72b76a08e57c040dc78e4f |
|
BLAKE2b-256 | 7ea742491100ec8cff06b1dc218cf3cc0e764afbd407a193b0a80bbc8dfd6ce0 |
Close
Hashes for flake8_useless_assert-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 717d65687210b10c31c166f37fa7f546430120167cca16b2f023fc2d73ae0b2b |
|
MD5 | 777523c1da329177748156a5ba4e1653 |
|
BLAKE2b-256 | dce1d537ca336ea5e71b9c2add7c890a902db04849fb48a007adb489348502be |