Skip to content

Commit

Permalink
Add hook for pydoc
Browse files Browse the repository at this point in the history
  • Loading branch information
aandres committed Jun 21, 2023
1 parent c807bef commit ad10948
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,10 @@ repos:
additional_dependencies:
- toml
args: [--config=pyproject.toml]
- repo: https://github.com/pycqa/pydocstyle
rev: 6.3.0
hooks:
- id: pydocstyle
files: ^beavers/replay.py
additional_dependencies:
- tomli
1 change: 1 addition & 0 deletions beavers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"""beavers package module"""
1 change: 1 addition & 0 deletions beavers/engine.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""Module for building and representing dags and nodes"""
from __future__ import annotations

import collections.abc
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,6 @@ folders = [ {path = "beavers"}]

[tool.ruff]
line-length = 88

[tool.pydocstyle]
ignore = ["D102", "D107", "D203", "D212"]

0 comments on commit ad10948

Please sign in to comment.