diff --git a/pyproject.toml b/pyproject.toml index eb62b32b..ff7a6942 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -179,14 +179,14 @@ build-backend = "setuptools.build_meta" preview = true line-length = 100 indent-width = 4 -src = ["sdmetrics"] -target-version = "py312" +src = ["sdv"] exclude = [ "docs", ".tox", ".git", "__pycache__", - ".ipynb_checkpoints" + ".ipynb_checkpoints", + "tasks.py", ] [tool.ruff.lint] @@ -196,14 +196,22 @@ select = [ # Pycodestyle "E", "W", - "D200", + # pydocstyle + "D", # isort "I001", + # print statements + "T201", + # pandas-vet + "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 + "PD901", + "PD101", ] [tool.ruff.format] @@ -213,14 +221,15 @@ preview = true docstring-code-format = true docstring-code-line-length = "dynamic" -[tool.ruff.lint.pep8-naming] -extend-ignore-names = ["X", "C", "X_padded", "Y", "Y_padded"] - [tool.ruff.lint.isort] known-first-party = ["sdmetrics"] +lines-between-types = 0 [tool.ruff.lint.per-file-ignores] "__init__.py" = ["F401", "E402", "F403", "F405", "E501", "I001"] +"errors.py" = ["D105"] +"tests/**.py" = ["D"] [tool.ruff.lint.pydocstyle] convention = "google" +max-doc-length = 100