SwanHubX / SwanLab

⚡️SwanLab: your ML experiment notebook. 你的AI实验笔记本,跟踪与可视化你的机器学习全流程
https://swanlab.cn
Apache License 2.0
417 stars 39 forks source link

[BUG] Black格式化失败 #707

Closed SAKURA-CAT closed 43 minutes ago

SAKURA-CAT commented 2 hours ago

🐛 Bug description [Please make everyone to understand it]

开发时遇到此问题,在swanlab/data/run目录下,在black格式化时会出现如下提示:

image

但是在其他目录下不会有此问题,可能是由于目录/文件名称出现了python运行时的保留名称。

SAKURA-CAT commented 2 hours ago

发现operator不可使用,将文件名称改为helper