Skip to content

Commit fffadc2

Browse files
authored
Ignore F824 lint check for serving app (#665)
1 parent c942dec commit fffadc2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cornac/serving/app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def create_app():
119119

120120
@app.route("/recommend", methods=["GET"])
121121
def recommend():
122-
global model, train_set
122+
global model, train_set # noqa: F824
123123

124124
if model is None:
125125
return "Model is not yet loaded. Please try again later.", 400
@@ -187,7 +187,7 @@ def add_feedback():
187187

188188
@app.route("/evaluate", methods=["POST"])
189189
def evaluate():
190-
global model, train_set, metric_classnames
190+
global model, train_set, metric_classnames # noqa: F824
191191

192192
if model is None:
193193
return "Model is not yet loaded. Please try again later.", 400
@@ -241,7 +241,7 @@ def validate_query(query):
241241

242242

243243
def process_evaluation(test_set, query, exclude_unknowns):
244-
global model, train_set
244+
global model, train_set # noqa: F824
245245

246246
rating_threshold = query.get("rating_threshold", 1.0)
247247
user_based = (

0 commit comments

Comments
 (0)