Skip to content

Commit

Permalink
newer ruff settings
Browse files Browse the repository at this point in the history
  • Loading branch information
zkurtz committed Nov 30, 2024
1 parent 4113efa commit 5ec1289
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down

0 comments on commit 5ec1289

Please sign in to comment.