From c8296e0f61cf70d4b87bbd2ddf301f52f6b5a495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Endre=20F=C3=BCl=C3=B6p?= Date: Fri, 6 Dec 2024 19:15:52 +0100 Subject: [PATCH] [test] Modernize Pylint config The reason for this change is that Pylint gives the following deprecation warning: UserWarning: Specifying exception names in the overgeneral-exceptions option without module name is deprecated and support for it will be removed in pylint 3.0. Use fully qualified name (maybe 'builtins.BaseException' ?) instead. --- analyzer/tools/build-logger/.pylintrc | 2 +- analyzer/tools/merge_clang_extdef_mappings/.pylintrc | 2 +- analyzer/tools/statistics_collector/.pylintrc | 2 +- tools/report-converter/.pylintrc | 2 +- tools/tu_collector/.pylintrc | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/analyzer/tools/build-logger/.pylintrc b/analyzer/tools/build-logger/.pylintrc index 8764a3bf5f..2e0cec4ea2 100644 --- a/analyzer/tools/build-logger/.pylintrc +++ b/analyzer/tools/build-logger/.pylintrc @@ -374,4 +374,4 @@ exclude-protected=_asdict,_fields,_replace,_source,_make # Exceptions that will emit a warning when being caught. Defaults to # "Exception" -overgeneral-exceptions=Exception +overgeneral-exceptions=builtins.Exception diff --git a/analyzer/tools/merge_clang_extdef_mappings/.pylintrc b/analyzer/tools/merge_clang_extdef_mappings/.pylintrc index 8764a3bf5f..2e0cec4ea2 100644 --- a/analyzer/tools/merge_clang_extdef_mappings/.pylintrc +++ b/analyzer/tools/merge_clang_extdef_mappings/.pylintrc @@ -374,4 +374,4 @@ exclude-protected=_asdict,_fields,_replace,_source,_make # Exceptions that will emit a warning when being caught. Defaults to # "Exception" -overgeneral-exceptions=Exception +overgeneral-exceptions=builtins.Exception diff --git a/analyzer/tools/statistics_collector/.pylintrc b/analyzer/tools/statistics_collector/.pylintrc index 8764a3bf5f..b9424f4330 100644 --- a/analyzer/tools/statistics_collector/.pylintrc +++ b/analyzer/tools/statistics_collector/.pylintrc @@ -374,4 +374,4 @@ exclude-protected=_asdict,_fields,_replace,_source,_make # Exceptions that will emit a warning when being caught. Defaults to # "Exception" -overgeneral-exceptions=Exception +overgeneral-exceptions=builtin.Exception diff --git a/tools/report-converter/.pylintrc b/tools/report-converter/.pylintrc index 8764a3bf5f..2e0cec4ea2 100644 --- a/tools/report-converter/.pylintrc +++ b/tools/report-converter/.pylintrc @@ -374,4 +374,4 @@ exclude-protected=_asdict,_fields,_replace,_source,_make # Exceptions that will emit a warning when being caught. Defaults to # "Exception" -overgeneral-exceptions=Exception +overgeneral-exceptions=builtins.Exception diff --git a/tools/tu_collector/.pylintrc b/tools/tu_collector/.pylintrc index 8764a3bf5f..2e0cec4ea2 100644 --- a/tools/tu_collector/.pylintrc +++ b/tools/tu_collector/.pylintrc @@ -374,4 +374,4 @@ exclude-protected=_asdict,_fields,_replace,_source,_make # Exceptions that will emit a warning when being caught. Defaults to # "Exception" -overgeneral-exceptions=Exception +overgeneral-exceptions=builtins.Exception