diff --git a/pyproject.toml b/pyproject.toml index aa79523..618c3e1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,6 +28,29 @@ package = true [tool.ruff] line-length = 120 +[tool.ruff.lint] +select = [ + # ruff defaults: + "E4", "E7", "E9", "F", + "I", # flake8-import-order + "TID", # flake8-tidy-imports + "D", # google-style docstrings +] +ignore = [ + "D202", # would require one blank line after the last section of a multi-line docstring + "D203", # would require one blank line at start of class docstring + "D213", # would require multi-line docstring to start with a hard return + "D401", # would require imperative mood in docstring + "D413", # would put blank line at end of each multiline docstring +] + +[tool.ruff.lint.flake8-tidy-imports] +ban-relative-imports = "all" + +[tool.ruff.lint.per-file-ignores] +"__init__.py" = ["D104"] # would require module-level documentation +"test_*.py" = ["D"] + [tool.pyright] include = ["packio", "tests"]