From 31998f2c9fd28c1d251f51702aab31562a0c8a60 Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Tue, 9 Dec 2025 19:31:42 +0100 Subject: [PATCH 1/2] Handle the case when `ignored_contributors` is `None` --- github_activity/github_activity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github_activity/github_activity.py b/github_activity/github_activity.py index 0e0fdaf..a9cf547 100644 --- a/github_activity/github_activity.py +++ b/github_activity/github_activity.py @@ -467,7 +467,7 @@ def generate_activity_md( def ignored_user(username): if username in bot_users: return True - if any(fnmatch.fnmatch(username, user) for user in ignored_contributors): + if ignored_contributors and any(fnmatch.fnmatch(username, user) for user in ignored_contributors): return True return False From 0dd4ea249a8bd801dcf4cb984e64b4d18d3de8ba Mon Sep 17 00:00:00 2001 From: Jeremy Tuloup Date: Tue, 9 Dec 2025 19:35:22 +0100 Subject: [PATCH 2/2] lint --- github_activity/github_activity.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/github_activity/github_activity.py b/github_activity/github_activity.py index a9cf547..650bc6e 100644 --- a/github_activity/github_activity.py +++ b/github_activity/github_activity.py @@ -467,7 +467,9 @@ def generate_activity_md( def ignored_user(username): if username in bot_users: return True - if ignored_contributors and any(fnmatch.fnmatch(username, user) for user in ignored_contributors): + if ignored_contributors and any( + fnmatch.fnmatch(username, user) for user in ignored_contributors + ): return True return False