Spaces:
Running
Running
acecalisto3
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -216,7 +216,8 @@ def code_editor_interface(code):
|
|
216 |
'--output-format=text',
|
217 |
'--reports=n',
|
218 |
'-'
|
219 |
-
])
|
|
|
220 |
return formatted_code, lint_message
|
221 |
except Exception as e:
|
222 |
return code, f"Error formatting or linting code: {e}"
|
|
|
216 |
'--output-format=text',
|
217 |
'--reports=n',
|
218 |
'-'
|
219 |
+
])
|
220 |
+
lint_message = lint_result.getvalue()
|
221 |
return formatted_code, lint_message
|
222 |
except Exception as e:
|
223 |
return code, f"Error formatting or linting code: {e}"
|