From 6c3a2b3b7ced8d401c246945e0ee459c6c12b4fc Mon Sep 17 00:00:00 2001 From: Lint Action Date: Sun, 7 Jul 2024 09:40:41 +0000 Subject: [PATCH] Fix code style issues with Black --- app/gemini_wrapper.py | 2 +- server.py | 6 +++--- streamlit.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/gemini_wrapper.py b/app/gemini_wrapper.py index da91c0d..dd1ddfb 100644 --- a/app/gemini_wrapper.py +++ b/app/gemini_wrapper.py @@ -14,5 +14,5 @@ def main(): print(json.dumps({"error": "Analysis failed"})) -if __name__ == '__main__': +if __name__ == "__main__": main() diff --git a/server.py b/server.py index 4594061..fbf4ac4 100644 --- a/server.py +++ b/server.py @@ -14,12 +14,12 @@ def analyze(): analyzer._input_code = code style_guide = analyzer.analyze_code() processed_stule_guide = json.loads(style_guide) - issues = {'issues': processed_stule_guide} + issues = {"issues": processed_stule_guide} if style_guide: - return jsonify({'style_guide': issues}), 200 + return jsonify({"style_guide": issues}), 200 else: return jsonify({"error": "Analysis failed"}), 500 -if __name__ == '__main__': +if __name__ == "__main__": app.run(port=5000) diff --git a/streamlit.py b/streamlit.py index 6c28603..8dfaf2d 100644 --- a/streamlit.py +++ b/streamlit.py @@ -18,7 +18,7 @@ # Expanders for items in data["issues"]: with st.expander(f"Line `{items['line']}`"): - st.write(items['message']) + st.write(items["message"]) # JSON output st.subheader("Raw API response : ") with st.expander("Expand"):