mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
lint fixes
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
from mathgenerator.mathgen import *
|
||||
|
||||
write_list = []
|
||||
subjects = ['algebra', 'basic_math', 'calculus',
|
||||
'computer_science', 'geometry', 'misc', 'statistics']
|
||||
subjects = [
|
||||
'algebra', 'basic_math', 'calculus', 'computer_science', 'geometry',
|
||||
'misc', 'statistics'
|
||||
]
|
||||
wList = getGenList()
|
||||
|
||||
|
||||
@@ -71,12 +73,14 @@ def gen_to_row_string(item):
|
||||
kwargs_list = myGen.kwargs
|
||||
for kwarg in kwargs_list:
|
||||
kwargs += '`' + kwarg + '` '
|
||||
title = '[' + myGen.title + '](https://github.com/lukew3/mathgenerator/blob/main/mathgenerator/funcs/' + item[4] + '/' + func_name + '.py)'
|
||||
title = '[' + myGen.title + '](https://github.com/lukew3/mathgenerator/blob/main/mathgenerator/funcs/' + item[
|
||||
4] + '/' + func_name + '.py)'
|
||||
row = [myGen.id, title, prob, solu, func_name, kwargs]
|
||||
# tableLine = "| " + str(row[0]) + " | " + str(row[1]) + " | " + str(
|
||||
# row[2]) + " | " + str(row[3]) + " | " + str(row[4]) + " |\n"
|
||||
tableLine = "| " + str(row[0]) + " | " + str(row[1]) + " | " + str(
|
||||
row[2]) + " | " + str(row[3]) + " | " + str(row[4]) + " | " + str(row[5]) + " |\n"
|
||||
row[2]) + " | " + str(row[3]) + " | " + str(row[4]) + " | " + str(
|
||||
row[5]) + " |\n"
|
||||
print('added', item[1], '-', func_name, 'to the README.md')
|
||||
return tableLine
|
||||
|
||||
|
||||
Reference in New Issue
Block a user