Skip to content

Commit

Permalink
feat: add pydocstyle (#186)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Kanitz <[email protected]>
  • Loading branch information
JaeAeich and uniqueg authored May 30, 2024
1 parent b313375 commit 69e2437
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
15 changes: 14 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ types-botocore = "^1.0.2"
types-requests = "^2.31.0.20240406"
types-urllib3 = "^1.26.25.14"

[tool.ruff.lint.pydocstyle]
convention = "google"

[tool.ruff.lint]
select = [
"E", # pycodestyle
Expand All @@ -60,9 +63,19 @@ select = [
"B", # flake8-bugbear
"SIM", # flake8-simplify
"I", # isort
"PL" # pylint
"PL", # pylint
"D" # pydocstyle
]
ignore = [
"D203", # conflicts with D202 as formatter removes black line before class docstring
"D213", # conflicts with D212, would have been ignored regardless
"D206" # conflicts with E101, `format.indent-style="tab"`
]

[tool.ruff.lint.per-file-ignores] # ignore all pydocstyle errors in test and services modules
"tesk/services/**/*.py" = ["D"]
"tests/test_unit/test_services/**/*.py" = ["D"]

[tool.ruff.format]
quote-style = "single"
indent-style = "tab"
Expand Down
4 changes: 1 addition & 3 deletions tesk/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
"""
_summary_:tesk package initialization file.
"""
"""TESK package initialization file."""

0 comments on commit 69e2437

Please sign in to comment.