mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
fixed lint errors
This commit is contained in:
@@ -13,4 +13,5 @@ else:
|
||||
file = './futureGenerators.md'
|
||||
|
||||
with open(file, 'a') as f:
|
||||
f.writelines(f'| {title} | {example_problem} | {example_solution} | {further_explanation} |\n')
|
||||
f.writelines(
|
||||
f'| {title} | {example_problem} | {example_solution} | {further_explanation} |\n')
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import os
|
||||
from makeReadme import main
|
||||
|
||||
|
||||
def get_filepaths(subject_name):
|
||||
"""
|
||||
This function will generate the file names in a directory
|
||||
@@ -23,7 +24,9 @@ def get_filepaths(subject_name):
|
||||
|
||||
return file_paths
|
||||
|
||||
subjects = ['algebra', 'basic_math', 'calculus', 'computer_science', 'geometry', 'misc', 'statistics']
|
||||
|
||||
subjects = ['algebra', 'basic_math', 'calculus',
|
||||
'computer_science', 'geometry', 'misc', 'statistics']
|
||||
for subject in subjects:
|
||||
full_file_paths = get_filepaths(subject)
|
||||
full_file_paths.sort()
|
||||
@@ -34,4 +37,4 @@ for subject in subjects:
|
||||
with open(f'../mathgenerator/funcs/{subject}/__init__.py', 'w') as f:
|
||||
f.writelines(lines)
|
||||
|
||||
main() #makes readme
|
||||
main() # makes readme
|
||||
|
||||
Reference in New Issue
Block a user