From 7a0860363c9e5a9c57dda89d9b028aa19e5c4707 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 30 Aug 2025 19:38:57 -0500 Subject: [PATCH] fix: fix 'consider-using-set-comprehension' for pylint --- .pylintrc | 1 + src/wuttjamaican/problems.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pylintrc b/.pylintrc index 83c5663..23d9777 100644 --- a/.pylintrc +++ b/.pylintrc @@ -8,6 +8,7 @@ enable=anomalous-backslash-in-string, bare-except, broad-exception-caught, consider-using-f-string, + consider-using-set-comprehension, cyclic-import, dangerous-default-value, disallowed-name, diff --git a/src/wuttjamaican/problems.py b/src/wuttjamaican/problems.py index b401ed9..3394c23 100644 --- a/src/wuttjamaican/problems.py +++ b/src/wuttjamaican/problems.py @@ -200,7 +200,7 @@ class ProblemHandler(GenericHandler): :returns: List of system keys. """ checks = self.get_all_problem_checks() - return sorted(set([check.system_key for check in checks])) + return sorted({check.system_key for check in checks}) def get_system_title(self, system_key): """