diff --git a/pyproject.toml b/pyproject.toml index cc8ae57f..28f53260 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,8 @@ testpaths = [ [tool.ruff] fix = true force-exclude = true -ignore = [ +target-version = "py39" +lint.ignore = [ "COM812", # trailing commas (ruff-format recommended) "D203", # no-blank-line-before-class "D212", # multi-line-summary-first-line @@ -19,18 +20,17 @@ ignore = [ "D417", # argument description in docstring (unreliable) "ISC001", # simplify implicit str concatenation (ruff-format recommended) ] -per-file-ignores = {"*tests*" = [ +lint.per-file-ignores = {"*tests*" = [ "INP001", "S101", ], "hooks*" = [ "INP001", "T201", ]} -select = [ +lint.select = [ "ALL", ] -target-version = "py39" -mccabe.max-complexity = 18 +lint.mccabe.max-complexity = 18 [tool.tomlsort] all = true diff --git a/{{cookiecutter.project_slug}}/pyproject.toml b/{{cookiecutter.project_slug}}/pyproject.toml index e0da3b9c..e5312c16 100644 --- a/{{cookiecutter.project_slug}}/pyproject.toml +++ b/{{cookiecutter.project_slug}}/pyproject.toml @@ -72,7 +72,7 @@ testpaths = [ [tool.ruff] fix = true force-exclude = true -ignore = [ +lint.ignore = [ "COM812", # trailing commas (ruff-format recommended) "D203", # no-blank-line-before-class "D212", # multi-line-summary-first-line @@ -80,19 +80,18 @@ ignore = [ "D417", # argument description in docstring (unreliable) "ISC001", # simplify implicit str concatenation (ruff-format recommended) ] -per-file-ignores = {"tests*" = [ +lint.per-file-ignores = {"tests*" = [ "INP001", "S101", ]} -select = [ +lint.select = [ "ALL", ] -target-version = "py{{cookiecutter.min_python_version | replace('.', '')}}" -isort.known-first-party = [ +lint.isort.known-first-party = [ "{{cookiecutter.project_slug | replace('-', '_')}}", ] -mccabe.max-complexity = 18 -pep8-naming.classmethod-decorators = [ +lint.mccabe.max-complexity = 18 +lint.pep8-naming.classmethod-decorators = [ "classmethod", ]