Skip to content

STYLE replace flake8-rst with something maintained #46865

Open
@MarcoGorelli

Description

Currently, we use flake8-rst for running flake8 in code snippets in rst files:

- 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

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions