-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STYLE replace flake8-rst with something maintained #46865
Comments
Hi, I would like to work on this issue! |
Go ahead, thanks |
I looked around but couldn't find any other maintained tool that solves our problem. I did come across similar tools, like rstcheck, flakeheaven, but none of them solved our problem completely. |
thanks for looking - OK, let's keep this one for now, might be worth forking it and maintaining it |
@MarcoGorelli I'm a beginner who's learning backend development. Do you have any beginner-friendly issues I can contribute towards? |
take |
wait @stevenhastings - apologies, I didn't get round to updating the issue I recently managed to get in contact with the flake8-rst maintainer, and they've given me access to the repo - when I get a chance, I'll update the tool and make it compatible with the latest flake8 So I think this can be closed, apologies for having kept it open longer than necessary |
@MarcoGorelli no worries! thanks for letting me know. |
reopening, as now we're removing flake8-rst as it's causing issue on python3.10, and nothing maintained seems to have come along |
@MarcoGorelli have you checked this project as an alternative? |
i haven't, but if that does the same thing, then a pr would be very welcome! |
take |
I don' think the project I mentioned solves the issue. Un-assigning myself. |
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).
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:
pre-commit
on all filesThe text was updated successfully, but these errors were encountered: