diff --git a/pyproject.toml b/pyproject.toml index 9b9a906..6ea9bdd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.ruff] -select = ["ALL"] -ignore = [ +lint.select = ["ALL"] +lint.ignore = [ "E501", # line too long, handled by black "COM", # flake8-commas, handled by black "CPY", # flake8-copyright diff --git a/{{ cookiecutter.project_name }}/pyproject.toml b/{{ cookiecutter.project_name }}/pyproject.toml index 1e83555..95c265b 100644 --- a/{{ cookiecutter.project_name }}/pyproject.toml +++ b/{{ cookiecutter.project_name }}/pyproject.toml @@ -67,8 +67,8 @@ name = "{{ cookiecutter.package_name }}" {% endif -%} [tool.ruff] -select = ["ALL"] -ignore = [ +lint.select = ["ALL"] +lint.ignore = [ "E501", # line too long, handled by black (pycodestyle) "ANN003", # missing-type-kwargs (flake8-annotations) "ANN101", # missing-type-self (flake8-annotations) @@ -82,7 +82,7 @@ ignore = [ src = ["src", "tests", "docs"] target-version = "py38" # the minimum Python version supported, used by pyupgrade -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] "__init__.py" = [ "F401", # unused-import (Pyflakes) ] @@ -101,12 +101,12 @@ target-version = "py38" # the minimum Python version supported, used by pyupgra "ERA001", # commented-out-code (eradicate) ] -[tool.ruff.isort] +[tool.ruff.lint.isort] known-first-party = [ "{{ cookiecutter.project_name }}", "tests", ] lines-between-types = 0 -[tool.ruff.pydocstyle] +[tool.ruff.lint.pydocstyle] convention = "google"