From b6d61fca187a8ef19499cbf73a7e9ebc6b28b7ea Mon Sep 17 00:00:00 2001 From: Gilles Lepretre Date: Fri, 28 Nov 2025 22:10:20 +0100 Subject: [PATCH] Fix lint --- pygal/table.py | 2 +- ruff.toml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pygal/table.py b/pygal/table.py index d58b807e..c5a0b979 100644 --- a/pygal/table.py +++ b/pygal/table.py @@ -75,7 +75,7 @@ def render(self, total=False, transpose=False, style=False): table.append(labels) if total: - if len(table): + if table: table[0].append('Total') else: table.append([None] * (ln + 1) + ['Total']) diff --git a/ruff.toml b/ruff.toml index 798a6485..a36dbda9 100644 --- a/ruff.toml +++ b/ruff.toml @@ -14,6 +14,7 @@ ignore = [ "E721", # TODO: do not ignore? "E731", "E741", + "PLC0415", # Lazy imports for optional dependencies and circular import avoidance "PLW2901", # TODO: do not ignore? "PLW3301", # TODO: do not ignore? ]