refactor: disable pylint output log to console.

This commit is contained in:
liqiang-fit2cloud 2025-07-21 15:35:13 +08:00
parent 03f05ced27
commit 18c0be36a6

View File

@ -393,7 +393,7 @@ class ToolSerializer(serializers.Serializer):
file_name = get_file_name()
with open(file_name, 'w') as file:
file.write(code)
reporter = JSON2Reporter()
reporter = JSON2Reporter(output=io.StringIO())
Run([file_name,
"--disable=line-too-long",
'--module-rgx=[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}'],