From d01bd2718491379b79f5f99cd9074c5d6078aa58 Mon Sep 17 00:00:00 2001 From: Hagen Wierstorf Date: Tue, 18 Jun 2024 14:08:01 +0200 Subject: [PATCH] Add missing pyproject.toml settings --- pyproject.toml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8010823..6602180 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -75,6 +75,12 @@ addopts = ''' # ----- ruff -------------------------------------------------------------- # [tool.ruff] +cache-dir = '.cache/ruff' + +[tool.ruff.format] +docstring-code-format = true + +[tool.ruff.lint] select = [ 'D', # pydocstyle 'E', # pycodestyle errors @@ -91,11 +97,7 @@ extend-ignore = [ 'D107', # Missing docstring in `__init__` ] -line-length = 79 - -cache-dir = '.cache/ruff' - -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] '__init__.py' = [ 'F401', # * imported but unused ] @@ -105,7 +107,7 @@ cache-dir = '.cache/ruff' # # Check correct order/syntax of import statements # -[tool.ruff.isort] +[tool.ruff.lint.isort] # All from imports have their own line, e.g. # @@ -142,7 +144,7 @@ section-order = [ 'first-party', 'local-folder', ] -[tool.ruff.isort.sections] +[tool.ruff.lint.isort.sections] 'audeering' = [ 'audb', 'audbackend', @@ -166,7 +168,7 @@ section-order = [ # # Check variable/class names follow PEP8 naming convention # -[tool.ruff.pep8-naming] +[tool.ruff.lint.pep8-naming] ignore-names = [ 'config', # allow lowercase class name 'test_*', # allow uppercase name when testing a class @@ -177,7 +179,7 @@ ignore-names = [ # # Check docstrings follow selected convention # -[tool.ruff.pydocstyle] +[tool.ruff.lint.pydocstyle] convention = 'google'