STYLE replace flake8-rst with something maintained #46865
Open
Description
Currently, we use flake8-rst for running flake8 in code snippets in rst files:
pandas/.pre-commit-config.yaml
Lines 95 to 102 in 2e56a83
However, flake8-rst isn't maintained, and is currently run in its own environment with a different flake8 version because of incompatibilities with flake8 v4
Task here is:
- search around to see if there's a maintained tool which does the same thing (runs flake8 on code snippets in rst files)
- try using that instead, fixup any new errors which may result from running it via
pre-commit
on all files - make a PR