From 0b54c62b46fd4227fac1bb3d28ab47bdcaea6986 Mon Sep 17 00:00:00 2001 From: Joongi Kim Date: Sat, 9 Sep 2023 03:56:17 +0900 Subject: [PATCH] repo: Update the ruff tool config --- pyproject.toml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e15a25c..f28dd22 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,11 +38,23 @@ underlines = ["", "", ""] name = "Miscellaneous" showcontent = true -[tool.black] +[tool.ruff] line-length = 85 +src = ["src"] +select = [ + "E", # pycodestyle errors + "W", # pycodestyle warnings + "F", # pyflakes + "I", # isort + # "C", # flake8-comprehensions + # "B", # flake8-bugbear +] +ignore = ["E203","E731","E501"] + +[tool.ruff.isort] +known-first-party = ["callosum"] +known-local-folder = ["src"] +split-on-trailing-comma = true -[tool.isort] -profile = "black" -line_length = 85 -sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"] -known_first_party = ["callosum"] +[tool.black] +line-length = 85