tholo / pytest-flake8

pytest plugin to run flake8
Other
117 stars 47 forks source link

Does not work with pytest-xdist #94

Open iurisilvio opened 1 year ago

iurisilvio commented 1 year ago

Running with xdist, each worker and the controller execute the same code.

In the case of the controller, cache._flake8mtimes is never filled. Each worker generate a cache for part of the collected files.

At the end of execution, each worker write their data to the same cache (overwriting previous writes) and, after that, the controller write to cache an empty cache.

https://github.com/tholo/pytest-flake8/blob/d730278626fe02a3545e9fc79999fa5ec9c30a29/pytest_flake8.py#L84