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