We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e20fb3d commit 4e0e78dCopy full SHA for 4e0e78d
pylint/testutils/_primer/primer_run_command.py
@@ -6,6 +6,7 @@
6
7
import json
8
import sys
9
+import warnings
10
from io import StringIO
11
12
from pylint.lint import Run
@@ -86,6 +87,8 @@ def _lint_package(
86
87
else:
88
fatal_msgs = self._filter_fatal_errors(messages)
89
if fatal_msgs:
- print(f"Encountered fatal errors while priming {package_name} !\n")
90
- print(f"{self._print_msgs(fatal_msgs)}\n\n")
+ warnings.warn(
91
+ f"Encountered fatal errors while priming {package_name} !\n"
92
+ f"{self._print_msgs(fatal_msgs)}\n\n"
93
+ )
94
return messages, fatal_msgs
0 commit comments