From 4c79f2ccc58c8217b11f3a6183319ed39ce0099a Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Fri, 18 Oct 2024 15:47:08 +0800 Subject: [PATCH] Enable ruff's flake8-commas (COM) and refurb (FURB) rules --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 74516aefd87..8819d4e7b1b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -90,12 +90,14 @@ select = [ "B", # flake8-bugbear "BLE", # flake8-blind-except "C4", # flake8-comprehensions + "COM", # flake8-commas "D", # pydocstyle "E", # pycodestyle "EXE", # flake8-executable "F", # pyflakes "FA", # flake8-future-annotations "FLY", # flynt + "FURB", # refurb "I", # isort "ICN", # flake8-import-conventions "ISC", # flake8-implicit-str-concat @@ -127,6 +129,7 @@ extend-select = [ "PLW1514", # {function_name} in text mode without explicit encoding argument ] ignore = [ + "COM812", # Do not always add the trailing commas "D200", # One-line docstring should fit on one line "D202", # No blank lines allowed after function docstring "D205", # 1 blank line required between summary line and description