From 321d65b9c993957d5865197945984ed6c8e4b210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Sun, 30 Jun 2024 10:28:29 +0200 Subject: [PATCH] Modernize ruff config --- pyproject.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 545d8b1..3ca4cba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,6 +46,8 @@ Home = "https://github.com/sbidoul/runboat" [tool.ruff] fix = true target-version = "py310" + +[tool.ruff.lint] select = [ "F", # pyflakes "E", # pycodestyle @@ -59,10 +61,10 @@ select = [ "RUF", ] -[tool.ruff.mccabe] +[tool.ruff.lint.mccabe] max-complexity = 15 -[tool.ruff.isort] +[tool.ruff.lint.isort] known-first-party = ["runboat"] # pytest