Skip to content

Commit

Permalink
Updated project configurations
Browse files Browse the repository at this point in the history
- pre-commit to ignore certain files
- ignore some documentation errors
  • Loading branch information
coordt committed Dec 22, 2021
1 parent 2d69054 commit f9a4684
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ repos:
rev: 6.1.1
hooks:
- id: pydocstyle
exclude: test.*
exclude: test.*|custom_.*|\d\d\d\d_.*
additional_dependencies: [toml]
- repo: https://github.com/terrencepreilly/darglint
rev: v1.8.1
Expand All @@ -45,6 +45,8 @@ repos:
- -v 2
- "--message-template={path}:{line} in `{obj}`:\n {msg_id}: {msg}"
- --strictness=short
exclude: test.*|custom_.*|\d\d\d\d_.*

- repo: https://github.com/econchick/interrogate
rev: 1.5.0 # or master if you're bold
hooks:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ignore-module = false
ignore-nested-functions = true
ignore-nested-classes = true
ignore-setters = false
fail-under = 95
fail-under = 60
exclude = ["setup.py", "docs", "build", "test"]
ignore-regex = ["^get$", "^mock_.*", ".*BaseClass.*"]
verbose = 0
Expand All @@ -55,7 +55,7 @@ color_output = true

[tool.pydocstyle]
convention = "google"
add-ignore = ["D107", "D200", "D212"]
add-ignore = ["D104", "D105", "D106", "D107", "D200", "D212"]
match = "(?!test_).*\\.py"

[tool.black]
Expand Down

0 comments on commit f9a4684

Please sign in to comment.