diff --git a/pyproject.toml b/pyproject.toml index 43d0d468..023a3734 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -75,10 +75,10 @@ select = [ "I001", # isort ] -[tool.ruff.pydocstyle] +[tool.ruff.lint.pydocstyle] convention = "numpy" -[tool.ruff.isort] +[tool.ruff.lint.isort] # Use a single line between direct and from import lines-between-types = 1 diff --git a/src/scicookie/cli.py b/src/scicookie/cli.py index 1baba2bc..5effd20a 100644 --- a/src/scicookie/cli.py +++ b/src/scicookie/cli.py @@ -43,7 +43,7 @@ def __init__( def _get_cookiecutter_default_answer( - answer_definition: Union[str, list] + answer_definition: Union[str, list], ) -> str: if not isinstance(answer_definition, (str, list)): SciCookieLogs.raise_error( diff --git a/src/scicookie/{{cookiecutter.project_slug}}/build-system/base-pyproject.toml b/src/scicookie/{{cookiecutter.project_slug}}/build-system/base-pyproject.toml index c3d47267..3a8f79d0 100644 --- a/src/scicookie/{{cookiecutter.project_slug}}/build-system/base-pyproject.toml +++ b/src/scicookie/{{cookiecutter.project_slug}}/build-system/base-pyproject.toml @@ -66,20 +66,22 @@ src = ["./"] exclude = [ 'docs', ] + +[tool.ruff.lint] select = [ - "E", # pycodestyle - "F", # pyflakes - "D", # pydocstyle - "YTT", # flake8-2020 - "RUF", # Ruff-specific rules + "E", # pycodestyle + "F", # pyflakes + "D", # pydocstyle + "YTT", # flake8-2020 + "RUF", # Ruff-specific rules "I001", # isort ] fixable = ["I001"] -[tool.ruff.pydocstyle] +[tool.ruff.lint.pydocstyle] convention = "numpy" -[tool.ruff.isort] +[tool.ruff.lint.isort] # Use a single line between direct and from import lines-between-types = 1 {% endif %}