Skip to content

Commit

Permalink
[test] Modernize Pylint config
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gamesh411 committed Dec 6, 2024
1 parent d084d79 commit c8296e0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion analyzer/tools/build-logger/.pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion analyzer/tools/merge_clang_extdef_mappings/.pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion analyzer/tools/statistics_collector/.pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion tools/report-converter/.pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion tools/tu_collector/.pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c8296e0

Please sign in to comment.