Open rkday opened 10 years ago
With pycodestyle 2.6.0 (as part of flake8 3.8.4) the following is not detected.
asic = 'abc'
if not asic[0] in ["D", "R", "S"]:
print("Unknown ASIC %s!" % (str(asic)))
After removing the index [0]
the wrong order is detected correctly.
if not "foo%s" % bar in baz:
is also not detected.
I've recently run into (what seems like) a 🐛 for E713:
logger.info(f"{self.organization_public_primary_key} not found in destination, no cleanup to do.")
Getting:
engine_enterprise/apps/cluster_migration/organization_migrator.py:193:66: E713 test for membership should be 'not in'
Seems like it's considering the not found in
part of my string 🤔
you're using an old version of pycodestyle
I was looking into https://github.com/jcrocholl/pep8/issues/330, and I noticed that the following don't cause E713 when they should:
Looks like the regular expression is picking up the
(
betweennot
andin
and wrongly deciding that this is something of the form: