Use isort

[isort](https://isort.readthedocs.io/en/latest/) sorts your Python
imports so you don't have to. This makes sure that imports are always
where they should be and prevents issues like duplicated imports and
merge conflicts. Using pre-commit, this can be done automatically
without any manual steps.

Depends on #9.
This commit is contained in:
Jon Banafato
2019-11-09 10:45:01 -05:00
parent df4dd93347
commit 98c0a4fc3d
10 changed files with 40 additions and 10 deletions

View File

@@ -1,6 +1,8 @@
#!/usr/bin/python
import sys
import requests
# sys.path.insert(1, 'lib/')

View File

@@ -2,9 +2,10 @@
import cgi
import sys
sys.path.insert(0, '../')
from config import Config
sys.path.insert(0, '../')
class Frontend():
"""Dynamic frontend display functions"""

View File

@@ -1,8 +1,10 @@
#!/usr/bin/python
import sys
import sqlite3
import sys
# sys.path.insert(1, '../')
from config import Config
db_pointer = Config().catalogue_db