Skip to content

Commit

Permalink
Set max string length for ruff and turn on docstring checks (#393)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsheni authored Jul 17, 2024
1 parent 740f349 commit d132c23
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,9 @@ select = [
"PD"
]
ignore = [
"E501",
# pydocstyle
"D107", # Missing docstring in __init__
"D417", # Missing argument descriptions in the docstring, this is a bug from pydocstyle: https://github.com/PyCQA/pydocstyle/issues/449
# pandas-vet
"PD901",
"PD101",
]
Expand All @@ -204,8 +202,12 @@ lines-between-types = 0

[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "E402", "F403", "F405", "E501", "I001"]
# Ignore pydocstyle in `tests/**.py` directory.
"errors.py" = ["D105"]
"tests/**.py" = ["D"]

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

[tool.ruff.lint.pycodestyle]
max-doc-length = 100
max-line-length = 100

0 comments on commit d132c23

Please sign in to comment.