mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2026-04-09 11:07:55 +02:00
pre-commit run --all-files
This commit is contained in:
parent
f00bae45db
commit
73c587d10e
@ -3,6 +3,7 @@
|
|||||||
Takes desired PIN length as an argument and generates a PIN code of that
|
Takes desired PIN length as an argument and generates a PIN code of that
|
||||||
length.
|
length.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import secrets
|
import secrets
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|||||||
@ -36,10 +36,8 @@ def main():
|
|||||||
else:
|
else:
|
||||||
# Tästä tuli vahingossa catch-all virheellisille syötteille, enkä ole
|
# Tästä tuli vahingossa catch-all virheellisille syötteille, enkä ole
|
||||||
# varma toteutinko kaikki skenaariot
|
# varma toteutinko kaikki skenaariot
|
||||||
print(
|
print("Joko tilannetta ei ole vielä toteutettu tai annoit \
|
||||||
"Joko tilannetta ei ole vielä toteutettu tai annoit \
|
virheellisen syötteen. Ilmoittaisitko ongelman kehittäjälle?")
|
||||||
virheellisen syötteen. Ilmoittaisitko ongelman kehittäjälle?"
|
|
||||||
)
|
|
||||||
print("Tietokone valitsi:", tkvalinta, "syötteesi oli", valinta)
|
print("Tietokone valitsi:", tkvalinta, "syötteesi oli", valinta)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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,
|
the answer received this script. I thought I would try to improve it for fun,
|
||||||
since it doesn't pass pylint or anything.
|
since it doesn't pass pylint or anything.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
# Current year
|
# Current year
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user