File 0003-Fix-codespell-and-tox-lint-errors.patch of Package gcalcli

From 6fdafb5bdbec86879ec60916ea50949e9e1e1093 Mon Sep 17 00:00:00 2001
From: Mischa Salle <msalle@nikhef.nl>
Date: Mon, 27 Jan 2025 13:48:01 +0100
Subject: [PATCH 3/4] Fix codespell and tox:lint errors

---
 gcalcli/argparsers.py | 4 +++-
 gcalcli/gcal.py       | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/gcalcli/argparsers.py b/gcalcli/argparsers.py
index d832b57..1d1cca0 100644
--- a/gcalcli/argparsers.py
+++ b/gcalcli/argparsers.py
@@ -69,7 +69,9 @@ def validwidth(value):
     minwidth=30
     ival = int(value)
     if ival < minwidth:
-        raise argparse.ArgumentTypeError(f'Width must be a number >= {minwidth}')
+        raise argparse.ArgumentTypeError(
+            'Width must be a number >= %d' % minwidth
+        )
     return ival
 
 
diff --git a/gcalcli/gcal.py b/gcalcli/gcal.py
index 1c938d3..671f2d7 100644
--- a/gcalcli/gcal.py
+++ b/gcalcli/gcal.py
@@ -75,7 +75,7 @@ class GoogleCalendarInterface:
         # Store overall calendar width and width for day table cells
         self.width['cal'] = int(options.get('width', 80))
         day_width = int(( self.width['cal'] - 8) / 7)
-        # Mimimal day table cell is 10
+        # Minimal day table cell is 10
         self.width['day'] = day_width if day_width > 9 else 10
 
         self._get_cached()
-- 
2.43.0

openSUSE Build Service is sponsored by