From 66978fd3a290e9d3568b7b69debfe4c87e9932e7 Mon Sep 17 00:00:00 2001 From: srh-sloan Date: Mon, 18 Nov 2024 13:03:20 +0000 Subject: [PATCH] adding ruff config --- pyproject.toml | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 60619e61..3d4374a4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,12 +34,25 @@ dependencies = [ "uvicorn==0.30.3", ] -[tool.black] -line-length = 120 -[tool.flake8] -max-line-length = 120 -count = true +[tool.ruff.lint] +select = [ + "E", # pycodestyle + "W", # pycodestyle + "F", # pyflakes + "I", # isort + "B", # flake8-bugbear + "C90", # mccabe cyclomatic complexity + "G", # flake8-logging-format +] +ignore = [] +exclude = [ + "db/migrations/versions/", + "venv*", + ".venv*", + "__pycache__", +] +mccabe.max-complexity = 12 [tool.uv]