From 73c587d10e8253445c675a700c0ffc4a9d2800a1 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sat, 7 Feb 2026 10:47:49 +0200 Subject: [PATCH] pre-commit run --all-files --- python/pin.py | 1 + python/taitotalo/kivi_sakset_paperi.py | 6 ++---- python/weeknumbers.py | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/python/pin.py b/python/pin.py index 7c540b1..cc8b884 100755 --- a/python/pin.py +++ b/python/pin.py @@ -3,6 +3,7 @@ Takes desired PIN length as an argument and generates a PIN code of that length. """ + import secrets import sys diff --git a/python/taitotalo/kivi_sakset_paperi.py b/python/taitotalo/kivi_sakset_paperi.py index 87db07d..7f40414 100644 --- a/python/taitotalo/kivi_sakset_paperi.py +++ b/python/taitotalo/kivi_sakset_paperi.py @@ -36,10 +36,8 @@ def main(): else: # Tästä tuli vahingossa catch-all virheellisille syötteille, enkä ole # varma toteutinko kaikki skenaariot - print( - "Joko tilannetta ei ole vielä toteutettu tai annoit \ -virheellisen syötteen. Ilmoittaisitko ongelman kehittäjälle?" - ) + print("Joko tilannetta ei ole vielä toteutettu tai annoit \ +virheellisen syötteen. Ilmoittaisitko ongelman kehittäjälle?") print("Tietokone valitsi:", tkvalinta, "syötteesi oli", valinta) diff --git a/python/weeknumbers.py b/python/weeknumbers.py index 79a6743..0d8d1f4 100755 --- a/python/weeknumbers.py +++ b/python/weeknumbers.py @@ -4,6 +4,7 @@ A family member wanted to know what dates are on weeks 26 and 31 and instead of the answer received this script. I thought I would try to improve it for fun, since it doesn't pass pylint or anything. """ + import datetime # Current year