-
-
Notifications
You must be signed in to change notification settings - Fork 19.1k
Closed
Labels
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
- id: flake8-rst | |
name: flake8-rst | |
description: Run flake8 on code snippets in docstrings or RST files | |
language: python | |
entry: flake8-rst | |
types: [rst] | |
args: [--filename=*.rst] | |
additional_dependencies: [flake8-rst==0.7.0, flake8==3.7.9] |
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