Skip to content

Commit 15e4a28

Browse files
committed
fixed formatting
1 parent de73623 commit 15e4a28

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

test2text/pages/controls/controls_page.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,19 @@ def controls_page():
55
import streamlit as st
66
import plotly.express as px
77

8-
98
st.header("Controls page")
109
embedding_col, distances_col = st.columns(2)
1110
with embedding_col:
1211
st.subheader("Embedding")
1312

1413
def refresh_counts():
1514
with get_db_client() as db:
16-
st.session_state["all_annotations_count"] = db.count_all_entries_in_table("Annotations")
17-
st.session_state["embedded_annotations_count"] = db.count_embedded_entries_in_table("Annotations")
15+
st.session_state["all_annotations_count"] = (
16+
db.count_all_entries_in_table("Annotations")
17+
)
18+
st.session_state["embedded_annotations_count"] = (
19+
db.count_embedded_entries_in_table("Annotations")
20+
)
1821

1922
refresh_counts()
2023

test2text/pages/reports/report_by_req.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
SUMMARY_LENGTH = 100
99

10+
1011
def make_a_report():
1112
from test2text.services.db import get_db_client
1213

@@ -282,7 +283,6 @@ def write_annotations(current_annotations: set[tuple]):
282283
"Annotations",
283284
first_labels=[f"{req_external_id}"],
284285
second_labels=anno_labels,
285-
286286
)
287287
else:
288288
reqs_vectors_3d = minifold_vectors_3d(

test2text/pages/reports/report_by_tc.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
SUMMARY_LENGTH = 100
1010

11+
1112
def make_a_tc_report():
1213
from test2text.services.db import get_db_client
1314

@@ -32,8 +33,7 @@ def write_requirements(current_requirements: set[tuple]):
3233
_,
3334
distance,
3435
) in current_requirements:
35-
st.write(req_external_id, req_summary, round_distance(distance)
36-
)
36+
st.write(req_external_id, req_summary, round_distance(distance))
3737

3838
with st.container(border=True):
3939
st.subheader("Filter test cases")
@@ -53,7 +53,6 @@ def write_requirements(current_requirements: set[tuple]):
5353
where_clauses = []
5454
params = []
5555

56-
5756
if filter_summary.strip():
5857
where_clauses.append("Testcases.test_case LIKE ?")
5958
params.append(f"%{filter_summary.strip()}%")

test2text/services/visualisation/visualize_vectors.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def plot_2_sets_in_one_2d(
103103
first_color="red",
104104
second_color="green",
105105
first_labels=None,
106-
second_labels=None
106+
second_labels=None,
107107
):
108108
fig = go.Figure()
109109
fig.add_trace(
@@ -142,7 +142,7 @@ def plot_2_sets_in_one_3d(
142142
first_color="red",
143143
second_color="green",
144144
first_labels=None,
145-
second_labels=None
145+
second_labels=None,
146146
):
147147
fig = go.Figure()
148148
fig.add_trace(
@@ -154,7 +154,7 @@ def plot_2_sets_in_one_3d(
154154
name=first_title,
155155
text=first_labels,
156156
textposition="top left",
157-
marker=dict(color=f"{first_color}")
157+
marker=dict(color=f"{first_color}"),
158158
)
159159
)
160160

@@ -167,7 +167,7 @@ def plot_2_sets_in_one_3d(
167167
name=second_title,
168168
text=second_labels,
169169
textposition="top center",
170-
marker=dict(color=f"{second_color}")
170+
marker=dict(color=f"{second_color}"),
171171
)
172172
)
173173

0 commit comments

Comments
 (0)