From 618c5c47ad9c8dcd500a7d8d3464ef6decef192b Mon Sep 17 00:00:00 2001 From: Arthur Rio Date: Wed, 15 May 2024 13:53:13 +0200 Subject: [PATCH] Update lint config --- pyproject.toml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index fe4abf18..e9145eec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,11 +1,3 @@ -[tool.black] -line-length = 120 - -[tool.isort] -profile = "black" -line_length=120 -skip_gitignore = true - [tool.flynt] line-length = 120 @@ -61,12 +53,27 @@ ignore = [ ] # Allow autofix for all enabled rules (when `--fix`) is provided. -fixable = ["A", "B", "C", "D", "E", "F"] +fixable = [ + "A", + "B", + "C", + "D", + "E", + "F", + "I", + "SIM", + "UP", +] unfixable = [] # Allow unused variables when underscore-prefixed. dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" +[tool.ruff.lint.isort] +known-first-party = [ + "fastapi_filter", +] + [tool.ruff.lint.pydocstyle] convention = "google"