Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
19 changes: 19 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,25 @@ repos:
?.pb\.(cc|h)$|
?^cpp/src/generated/|
)
- repo: https://github.com/numpy/numpydoc
rev: v1.8.0
hooks:
- id: numpydoc-validation
name: Python (NumPy doc) Lint
alias: python-doc-lint
args:
- "--config=python"
files: >-
^python/pyarrow/
exclude: >-
(
?^python/pyarrow/interchange/from_dataframe\.py$|
?^python/pyarrow/jvm\.py$|
?^python/pyarrow/pandas_compat\.py$|
?^python/pyarrow/tests/|
?^python/pyarrow/util\.py$|
?^python/pyarrow/vendored/|
)
- repo: local
hooks:
- id: lintr
Expand Down
15 changes: 15 additions & 0 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,21 @@ test = [
'pandas'
]

[tool.numpydoc_validation]
checks = [
"GL10",
"PR01",
"PR03",
"PR04",
"PR05",
"PR10",
"RT03",
"YD01",
]
exclude = [
'\._.*$',
]

[tool.setuptools]
zip-safe=false
include-package-data=true
Expand Down
Loading