Skip to content

Commit 38a02ec

Browse files
committed
fixed formatting
1 parent 9b7575b commit 38a02ec

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

test2text/pages/reports/report_by_req.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
def make_a_report():
1010
from test2text.services.db import get_db_client
11+
1112
with get_db_client() as db:
1213
from test2text.services.embeddings.embed import embed_requirement
1314
from test2text.services.utils import unpack_float32

test2text/pages/reports/report_by_tc.py

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

99
def make_a_tc_report():
1010
from test2text.services.db import get_db_client
11+
1112
with get_db_client() as db:
1213
from test2text.services.embeddings.embed import embed_requirement
1314
from test2text.services.utils import unpack_float32
@@ -18,7 +19,6 @@ def make_a_tc_report():
1819
plot_2_sets_in_one_3d,
1920
)
2021

21-
2222
st.header("Test2Text Report")
2323

2424
def write_requirements(current_requirements: set[tuple]):
@@ -29,7 +29,9 @@ def write_requirements(current_requirements: set[tuple]):
2929
_,
3030
distance,
3131
) in current_requirements:
32-
st.write(f"#{req_id} Requirement {req_external_id} {req_summary} {round_distance(distance)}")
32+
st.write(
33+
f"#{req_id} Requirement {req_external_id} {req_summary} {round_distance(distance)}"
34+
)
3335

3436
with st.container(border=True):
3537
st.subheader("Filter test cases")
@@ -97,8 +99,7 @@ def write_requirements(current_requirements: set[tuple]):
9799
}
98100
else:
99101
tc_dict = {
100-
test_case: tc_id
101-
for (tc_id, _, test_case) in data.fetchall()
102+
test_case: tc_id for (tc_id, _, test_case) in data.fetchall()
102103
}
103104

104105
st.subheader("Choose ONE of filtered test cases")
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
def round_distance(distance: float) -> float:
2-
return round(distance, 2)
2+
return round(distance, 2)

0 commit comments

Comments
 (0)