Skip to content

Commit a5ff0c0

Browse files
committed
🎨 Auto-format code with pre-commit
1 parent 038cee6 commit a5ff0c0

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

app/src/renderer/src/pages/main-home/components/pieChart.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ const PieChart = ({ data }: { data: SummaryData }) => {
187187
const [activeFirstLevel, setActiveFirstLevel] = useState<string>('');
188188
// 我要取得data.type_ratio的第一个key
189189
const [selected, setSelected] = useState<string>(Object.keys(data.type_ratio || {})[0] || '');
190-
190+
191191

192192
// 安全获取 type_ratio,支持 content 属性或直接使用 type_ratio
193193
// eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -197,7 +197,7 @@ const PieChart = ({ data }: { data: SummaryData }) => {
197197
value: key,
198198
label: key,
199199
}));
200-
200+
201201
// 获取二级数据的函数
202202
const getSecondLevelData = (firstLevelType: string) => {
203203
if (!typeRatioData || typeof typeRatioData !== 'object') {
@@ -378,7 +378,7 @@ const PieChart = ({ data }: { data: SummaryData }) => {
378378
value={selected}
379379
/>
380380
</div>
381-
381+
382382
<ReactECharts
383383
option={option}
384384
style={{

dingo/run/vsl.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ def get_evaluation_details(root_path):
4040
返回格式: { "相对路径/文件.jsonl": [数据数组] }
4141
"""
4242
details = {}
43-
43+
4444
def traverse_directory(current_path, relative_path=""):
4545
"""递归遍历目录"""
4646
try:
4747
for item in os.listdir(current_path):
4848
item_path = os.path.join(current_path, item)
4949
new_relative_path = f"{relative_path}/{item}" if relative_path else item
50-
50+
5151
if os.path.isdir(item_path):
5252
# 递归遍历子目录
5353
traverse_directory(item_path, new_relative_path)
@@ -72,7 +72,7 @@ def traverse_directory(current_path, relative_path=""):
7272
print(f"Warning: Error reading file {item_path}: {e}")
7373
except Exception as e:
7474
print(f"Warning: Error reading directory {current_path}: {e}")
75-
75+
7676
traverse_directory(root_path)
7777
return details
7878

web-static/assets/main-BJ2wBIkh.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49016,7 +49016,7 @@ const genVirtualStyle = (token2) => {
4901649016
[`${componentCls}-tbody-virtual`]: {
4901749017
[`${componentCls}-tbody-virtual-holder-inner`]: {
4901849018
[`
49019-
& > ${componentCls}-row,
49019+
& > ${componentCls}-row,
4902049020
& > div:not(${componentCls}-row) > ${componentCls}-row
4902149021
`]: {
4902249022
display: "flex",

web-static/assets/main-ByTNTbJP.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1529,4 +1529,4 @@ body #root {
15291529
}.index-module__main-home___zg1x- {
15301530
width: calc(100% - var(--sidebar-width));
15311531
height: 100%;
1532-
}
1532+
}

0 commit comments

Comments
 (0)