remove unused db.py and add flake8 config

This commit is contained in:
Leo Hemsted
2017-11-27 15:14:36 +00:00
parent 9a0c01fee5
commit 3ee351b802
2 changed files with 7 additions and 14 deletions

7
.flake8 Normal file
View File

@@ -0,0 +1,7 @@
[flake8]
# Rule definitions: http://flake8.pycqa.org/en/latest/user/error-codes.html
# W503: line break before binary operator
exclude = venv*,__pycache__,node_modules,cache,migrations
ignore = W503
max-complexity = 14
max-line-length = 120

14
db.py
View File

@@ -1,14 +0,0 @@
from flask_script import Manager, Server
from flask_migrate import Migrate, MigrateCommand
from app import create_app, db
application = create_app()
manager = Manager(application)
migrate = Migrate(application, db)
manager.add_command('db', MigrateCommand)
if __name__ == '__main__':
manager.run()