mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-05 02:41:14 -05:00
remove unused db.py and add flake8 config
This commit is contained in:
7
.flake8
Normal file
7
.flake8
Normal 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
14
db.py
@@ -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()
|
|
||||||
Reference in New Issue
Block a user