From 7c82fa20819e028a048d2140f973aa8ae05305c5 Mon Sep 17 00:00:00 2001 From: xiaoxia Date: Mon, 27 Jul 2026 18:30:40 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E6=B7=BB=E5=8A=A0=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E6=B7=B7=E4=B9=B1=E7=9A=84=E6=B5=8B=E8=AF=95=E6=96=87=E4=BB=B6?= =?UTF-8?q?=EF=BC=8C=E7=94=A8=E4=BA=8E=E9=AA=8C=E8=AF=81=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/format_test_sample.py | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 scripts/format_test_sample.py diff --git a/scripts/format_test_sample.py b/scripts/format_test_sample.py new file mode 100644 index 000000000..048db1454 --- /dev/null +++ b/scripts/format_test_sample.py @@ -0,0 +1,35 @@ +\"\"\" +测试格式自动修复的文件 +故意写乱格式来验证black/isort自动修复 +\"\"\" +import os +import sys +import json +import re +from typing import Optional +import requests + + +def test_function( x,y,z ): + \"\"\"测试函数,格式故意写乱\"\"\" + result = x + y + z + + + return result + + +class TestClass: + def __init__(self,name,value): + self.name=name + self.value = value + + def get_name( self ): + return self.name + + +# 多余的空行 + + + +def another_function(a,b,c,d,e,f,g): + return a+b+c+d+e+f+g