Run black on all files

This commit is contained in:
Jon Banafato
2019-11-17 16:59:14 -05:00
parent e5a634d805
commit 72403bd981
18 changed files with 170 additions and 150 deletions

View File

@@ -7,22 +7,21 @@ from ..lib.library import Catalogue
class Test_Config(Config):
def __init__(self):
Config.__init__(self, 'config.json')
Config.__init__(self, "config.json")
_data = self.open_file()
def open_file(self, root='config.json'):
with open('config.json') as read_file:
def open_file(self, root="config.json"):
with open("config.json") as read_file:
data = json.load(read_file)
return data
class Test_Catalogue(Catalogue):
def __init__(self):
Catalogue.__init__(self, root=os.path.abspath('.'))
Catalogue.__init__(self, root=os.path.abspath("."))
def filter_books(self):
self.book_shelf = 'app/'+self.book_shelf
self.book_shelf = "app/" + self.book_shelf
return super().filter_books()