CI tests with flake8 hacking extension gives false positives for the following case:
codeline = 'if print or self.opt.put or self.opt.tofile:'
the detection regex of hacking is:
RE_PRINT = re.compile(r"\bprint(?:$|\s+[^\(])")
RE_PRINT.findall(line) unexpectadly finds ['print o']
The right regex needs a negative lookbehind and might be:
RE_PRINT = re.compile(r"(?<!\.)\bprint(?:$|\s+[^\(])")
Unfortunately hacking has a its issue tracker at ubuntu one where an account is required. (I don't have one and don't want to create one.)