Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace flake8-rst with flake8-rst-docstrings
Fixes pandas-dev#46865 Replace `flake8-rst` with `flake8-rst-docstrings` for running flake8 on code snippets in rst files. * **pyproject.toml** - Remove `flake8` from the `tool.ruff.lint` section. - Add `flake8-rst-docstrings` to the `tool.ruff.lint` section. - Update the `tool.ruff.lint` section to use `flake8-rst-docstrings` instead of `flake8-rst`. * **.pre-commit-config.yaml** - Remove the `flake8-rst` hook from the `hooks` section. - Add a new hook for `flake8-rst-docstrings` in the `hooks` section. - Configure the new `flake8-rst-docstrings` hook with appropriate `additional_dependencies`. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/pandas-dev/pandas/issues/46865?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information