format files with black

This commit is contained in:
Aarni Halinen
2022-01-13 22:10:24 +02:00
parent a0f062c697
commit 11efcdd579
178 changed files with 3763 additions and 2324 deletions
+10 -6
View File
@@ -3,14 +3,18 @@ import os
def generate_names(n):
'''
"""
generates list of n random names
returns tuple(first, last)
'''
with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), "firstnames.txt")) as f:
fs = f.read().split('\n')
with open(os.path.join(os.path.dirname(os.path.realpath(__file__)), "lastnames.txt")) as f:
ls = f.read().split('\n')
"""
with open(
os.path.join(os.path.dirname(os.path.realpath(__file__)), "firstnames.txt")
) as f:
fs = f.read().split("\n")
with open(
os.path.join(os.path.dirname(os.path.realpath(__file__)), "lastnames.txt")
) as f:
ls = f.read().split("\n")
names = []
for i in range(n):