Page MenuHomePhabricator

flake8-mock is incompatible with flake8 version 5
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue:

run flake8-mock (latest version 0.3) with flake8 version 5.0.0

What happens?:

10:47:13 [238] /src$ /src/.tox/flake8-py38/bin/flake8 --version
10:47:13 There was a critical error during execution of Flake8:
10:47:13 plugin code for `flake8-mock[flake8_mock]` does not match ^[A-Z]{1,3}[0-9]{0,3}$

https://integration.wikimedia.org/ci/job/pywikibot-core-tox-docker/20271/console

Software version:
Python 3.6+ because flake8 5 is for Python 3.6+ only

Event Timeline

Xqt changed the task status from Open to In Progress.Jul 31 2022, 9:00 AM
Xqt claimed this task.
Xqt triaged this task as High priority.
Xqt moved this task from Backlog to CI test failures on the Pywikibot-tests board.

Change 818602 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [tests] uses verve-flake8-mock instead of flake8-mock

https://gerrit.wikimedia.org/r/818602

Change 818602 merged by Xqt:

[pywikibot/core@master] [tests] Fix flake8 version 5 dependency

https://gerrit.wikimedia.org/r/818602