Commit 34829e4
committed
Replace flake8-rst with flake8-rst-docstrings
Fixes #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).1 parent 5e50d3f commit 34829e4
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
263 | 265 | | |
264 | 266 | | |
265 | 267 | | |
| |||
0 commit comments