From b4dfa8df08aeda9f6c0a9b0e5f07427cd41986a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sun, 13 Aug 2023 10:49:52 +0300 Subject: [PATCH] chore(ruff): fine tune config wrt. black coexistence --- pyproject.toml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7006b8f..daec0e0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,18 +12,26 @@ target-version = [ ] [tool.ruff] -select = ["ALL"] +select = [ + "ALL", + # E and W rules not covered by Black + "E71", + "E72", + "E73", + "E74", + "E9", + "W605", +] ignore = [ "ANN", # Maybe sometime "COM", # Black "D203", # Black, ping/pong with D211 "D213", # Ping/pong with D212 - #"E203", # Black, uncomment when/if ruff starts to support - "E50", # Black - "E70", # Black + "E", # Black, except ones in `select` above "FA", # See what happens with PEP 649 impl first "UP014", # Python >= 3.6 "UP032", # Python >= 3.6 + "W", # Black, except ones in `select` above ] unfixable = [