From bf97f9be9502f7ebae31892aad677bce070f897e Mon Sep 17 00:00:00 2001 From: Sebastian Tramp Date: Fri, 2 Feb 2024 09:21:55 +0100 Subject: [PATCH] ruff: ignore FBT (boolean trap) --- CHANGELOG.md | 1 + src/pyproject.toml.jinja | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 387e005..6a3ebc0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p - check:ruff now creates always a junit XML file - ignore FIX002 - allow to add TODO notes in the code +- ignore FBT (boolean trap) ## [6.0.1] 2023-11-16 diff --git a/src/pyproject.toml.jinja b/src/pyproject.toml.jinja index d05c5b2..57da6b5 100644 --- a/src/pyproject.toml.jinja +++ b/src/pyproject.toml.jinja @@ -71,6 +71,7 @@ ignore = [ "D400", # First line should end with a period "D415", # First line should end with a period, question mark, or exclamation point "EM", # Exception texts - https://docs.astral.sh/ruff/rules/#flake8-errmsg-em + "FBT", # The Boolean Trap - https://docs.astral.sh/ruff/rules/#flake8-boolean-trap-fbt "FIX002", # Allow to add TODO notes in the code "G004", # Logging statement uses f-string "ISC001", # single-line-implicit-string-concatenation