Skip to content

Commit 18c0be3

Browse files
refactor: disable pylint output log to console.
1 parent 03f05ce commit 18c0be3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/tools/serializers/tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def run(self, instance, is_valid=True):
393393
file_name = get_file_name()
394394
with open(file_name, 'w') as file:
395395
file.write(code)
396-
reporter = JSON2Reporter()
396+
reporter = JSON2Reporter(output=io.StringIO())
397397
Run([file_name,
398398
"--disable=line-too-long",
399399
'--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}'],

0 commit comments

Comments
 (0)