Xqt created this task. Xqt added projects: Pywikibot, Pywikibot-tests, Upstream. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION 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.) See: https://bugs.launchpad.net/hacking TASK DETAIL https://phabricator.wikimedia.org/T366050 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, Xqt, pywikibot-bugs-list, mevo, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Aram, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, binbot, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Krenair
_______________________________________________ pywikibot-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
