From 3a0e62b5e9b9fbc9b646f01f3a69af27cf28afa0 Mon Sep 17 00:00:00 2001 From: Alex Ruddick Date: Mon, 5 Feb 2024 14:22:39 -0600 Subject: [PATCH] move ruff config options https://astral.sh/blog/ruff-v0.2.0#configuration-changes --- ruff.toml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ruff.toml b/ruff.toml index 4d8de26..4825c36 100644 --- a/ruff.toml +++ b/ruff.toml @@ -1,13 +1,13 @@ +exclude = ["venv*"] line-length = 99 -ignore = [ +lint.ignore = [ "PLR2004", # Magic value used in comparison, consider replacing {value} with a constant variable "D104", # Missing docstring in public package "D107", # Missing docstring in __init__ "PT001", # Use `@pytest.fixture()` over `@pytest.fixture` "PT023", # Use `@pytest.mark.asyncio()` over `@pytest.mark.asyncio` ] -exclude = ["venv*"] -select = [ +lint.select = [ # "B", # bandit "C", # complexity "D", # docstrings @@ -20,9 +20,9 @@ select = [ "UP", # pyupgrade "W", # pycodestyle warnings "YTT", # flake8-2020 - # "ARG", # flake8-unused args + "ARG", # flake8-unused args ] -[pydocstyle] +[lint.pydocstyle] convention = "pep257" -[flake8-unused-arguments] +[lint.flake8-unused-arguments] ignore-variadic-names = true