--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Imports/translations.py Wed Jul 13 11:16:20 2022 +0200 +++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Imports/translations.py Wed Jul 13 14:55:47 2022 +0200 @@ -12,44 +12,39 @@ _importsMessages = { "I101": QCoreApplication.translate( - "ImportsChecker", - "local import must be at the beginning of the method body"), + "ImportsChecker", "local import must be at the beginning of the method body" + ), "I102": QCoreApplication.translate( "ImportsChecker", - "packages from external modules should not be imported locally"), + "packages from external modules should not be imported locally", + ), "I103": QCoreApplication.translate( "ImportsChecker", - "packages from standard modules should not be imported locally"), - + "packages from standard modules should not be imported locally", + ), "I201": QCoreApplication.translate( "ImportsChecker", - "Import statements are in the wrong order. " - "'{0}' should be before '{1}'"), + "Import statements are in the wrong order. " "'{0}' should be before '{1}'", + ), "I202": QCoreApplication.translate( - "ImportsChecker", - "Imported names are in the wrong order. " - "Should be '{0}'"), + "ImportsChecker", "Imported names are in the wrong order. " "Should be '{0}'" + ), "I203": QCoreApplication.translate( "ImportsChecker", - "Import statements should be combined. " - "'{0}' should be combined with '{1}'"), + "Import statements should be combined. " "'{0}' should be combined with '{1}'", + ), "I204": QCoreApplication.translate( "ImportsChecker", - "The names in __all__ are in the wrong order. " - "The order should be '{0}'"), - + "The names in __all__ are in the wrong order. " "The order should be '{0}'", + ), "I901": QCoreApplication.translate( - "ImportsChecker", - "unnecessary import alias - rewrite as '{0}'"), - "I902": QCoreApplication.translate( - "ImportsChecker", - "banned import '{0}' used"), + "ImportsChecker", "unnecessary import alias - rewrite as '{0}'" + ), + "I902": QCoreApplication.translate("ImportsChecker", "banned import '{0}' used"), "I903": QCoreApplication.translate( - "ImportsChecker", - "relative imports from parent modules are banned"), - "I904": QCoreApplication.translate( - "ImportsChecker", - "relative imports are banned"), + "ImportsChecker", "relative imports from parent modules are banned" + ), + "I904": QCoreApplication.translate("ImportsChecker", "relative imports are banned"), } _importsMessagesSampleArgs = {