Skip to content

Commit 1c5cdd2

Browse files
ARROW-93 Adopt flake8-rst checks (#221)
* ARROW-93 Adopt flake8-rst checks * Restrict flake8 hook to .rst files
1 parent cbbb2b7 commit 1c5cdd2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,18 @@ repos:
4646
additional_dependencies: [sphinx]
4747
args: ["--ignore-directives=doctest,testsetup,todo,automodule","--ignore-substitutions=release", "--report-level=error"]
4848

49+
- repo: https://github.com/PyCQA/flake8
50+
rev: 3.9.2
51+
hooks:
52+
- id: flake8
53+
files: \.rst$
54+
additional_dependencies: [
55+
'flake8-rst==0.8.0',
56+
'flake8-bugbear==20.1.4',
57+
'flake8-logging-format==0.6.0',
58+
'flake8-implicit-str-concat==0.2.0',
59+
]
60+
4961
# We use the Python version instead of the original version which seems to require Docker
5062
# https://github.com/koalaman/shellcheck-precommit
5163
- repo: https://github.com/shellcheck-py/shellcheck-py

0 commit comments

Comments
 (0)