Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -303,3 +303,11 @@ repos:
language: python
files: ^doc/source/whatsnew/v
exclude: ^doc/source/whatsnew/v(0|1|2\.0\.0)
- id: flake8-rst-docstrings
name: flake8-rst-docstrings
description: Run flake8 on code snippets in docstrings or RST files
language: python
entry: flake8-rst-docstrings
types: [rst]
args: [--filename=*.rst]
additional_dependencies: [flake8-rst-docstrings==0.1.0, flake8==3.7.9]
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@ select = [
# flake8-slots
"SLOT",
# flake8-raise
"RSE"
"RSE",
# flake8-rst-docstrings
"RST"
]

ignore = [
Expand Down