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 87545d0
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Configuration file for the Sphinx documentation builder.
#
"""Configuration file for the Sphinx documentation builder."""

# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

Expand Down
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
1 change: 1 addition & 0 deletions tests/test_packio.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import dummio
import pandas as pd

from packio import Reader, Writer


Expand Down

0 comments on commit 87545d0

Please sign in to comment.