Stop using flaky lib, use pytest-rerunfailures instead (#1296)

* Stop using flaky lib, use pytest-rerunfailures instead

flaky is not compatible with the latest pytest release and appears unmaintained, while pytest-rerunfailures is maintained by the pytest team

* ruff
4 files changed