From 3e07de3e690d835f03b726ea1fa1b041672dc6a9 Mon Sep 17 00:00:00 2001 From: Jason Manuel Date: Fri, 15 Nov 2024 18:14:49 -0700 Subject: [PATCH] Configure ruff lint I'm using it in Pulsar now. It replaces some existing linters, and it's faster. I think it feels faster :) --- pyproject.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8f60a7b..2e28439 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,12 +26,12 @@ readme = "README.md" [project.optional-dependencies] dev = [ - "ruff", "flake8>=7.1.0,<8", "mypy>=1.12.0,<2", "pre-commit>=2.6.0,<3", "pylsp-mypy", "python-lsp-server[all]>=1.12.0,<2", + "ruff", "snakeviz", ] test = [ @@ -65,3 +65,9 @@ target-version = "py312" [tool.ruff.format] quote-style = "single" + +[tool.ruff.lint] +select = ["E", "F", "C90"] + +[tool.ruff.lint.mccabe] +max-complexity = 14 # max allowed, mccabe equivalent setting would be 15 for warrning *at* 15