From a912454d92d5ae15f189703202aa9c20cc37979b Mon Sep 17 00:00:00 2001 From: Mattia Almansi Date: Mon, 5 Feb 2024 14:43:40 +0100 Subject: [PATCH] use ruff.lint --- {{cookiecutter.project_name}}/pyproject.toml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/{{cookiecutter.project_name}}/pyproject.toml b/{{cookiecutter.project_name}}/pyproject.toml index 781d545..c12a0fd 100644 --- a/{{cookiecutter.project_name}}/pyproject.toml +++ b/{{cookiecutter.project_name}}/pyproject.toml @@ -25,13 +25,15 @@ branch = true strict = {{ cookiecutter.mypy_strict | string | lower }} [tool.ruff] +# Same as Black. +indent-width = 4 +line-length = 88 + +[tool.ruff.lint] ignore = [ # pydocstyle: Missing Docstrings "D1" ] -# Same as Black. -indent-width = 4 -line-length = 88 select = [ # pyflakes "F", @@ -47,7 +49,7 @@ select = [ [tool.ruff.lint.pycodestyle] max-line-length = 110 -[tool.ruff.pydocstyle] +[tool.ruff.lint.pydocstyle] convention = "numpy" [tool.setuptools]