Skip to content

Commit

Permalink
Backport PR #1967: Let ruff know about numpydoc (#1969)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Gayoso <adamgayoso@users.noreply.github.com>
  • Loading branch information
meeseeksmachine and adamgayoso committed Mar 17, 2023
1 parent c97d97a commit 759e89e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ repos:
# https://github.com/jupyterlab/jupyterlab/issues/12675
language_version: "17.9.1"
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.253
rev: v0.0.254
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ ignore = [
"D417",
]

[tool.ruff.pydocstyle]
convention = "numpy"

[tool.ruff.per-file-ignores]
"docs/*" = ["I", "BLE001"]
"tests/*" = ["D"]
Expand Down

0 comments on commit 759e89e

Please sign in to comment.