lint
This commit is contained in:
parent
3c5abee77c
commit
a189e8756c
2 changed files with 33 additions and 23 deletions
|
@ -8,7 +8,6 @@ import sys
|
|||
from app.extensions import db
|
||||
from app.extensions import migrate
|
||||
from app.extensions import bootstrap
|
||||
from app.models.automation import Automation, AutomationState
|
||||
from app.portal import portal
|
||||
from app.tfstate import tfstate
|
||||
|
||||
|
@ -16,8 +15,8 @@ from app.tfstate import tfstate
|
|||
app = Flask(__name__)
|
||||
app.config.from_file("../config.yaml", load=yaml.safe_load)
|
||||
|
||||
app.wsgi_app = DispatcherMiddleware(app.wsgi_app, {
|
||||
'/metrics': make_wsgi_app()
|
||||
app.wsgi_app = DispatcherMiddleware(app.wsgi_app, { # type: ignore[assignment]
|
||||
'/metrics': make_wsgi_app() # type: ignore[no-untyped-call]
|
||||
})
|
||||
|
||||
db.init_app(app)
|
||||
|
@ -31,9 +30,9 @@ app.register_blueprint(tfstate, url_prefix="/tfstate")
|
|||
if sys.argv[1] != "db":
|
||||
from app.metrics import DefinedProxiesCollector, BlockedProxiesCollector, AutomationCollector
|
||||
|
||||
REGISTRY.register(DefinedProxiesCollector())
|
||||
REGISTRY.register(BlockedProxiesCollector())
|
||||
REGISTRY.register(AutomationCollector())
|
||||
REGISTRY.register(DefinedProxiesCollector()) # type: ignore[no-untyped-call]
|
||||
REGISTRY.register(BlockedProxiesCollector()) # type: ignore[no-untyped-call]
|
||||
REGISTRY.register(AutomationCollector()) # type: ignore[no-untyped-call]
|
||||
|
||||
|
||||
@app.route('/')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue