src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Imports/translations.py

branch
eric7
changeset 11147
dee6e106b4d3
parent 11090
f5f5f5803935
child 11148
15e30f0c76a8
equal deleted inserted replaced
11146:59e04f7003e9 11147:dee6e106b4d3
9 """ 9 """
10 10
11 from PyQt6.QtCore import QCoreApplication 11 from PyQt6.QtCore import QCoreApplication
12 12
13 _importsMessages = { 13 _importsMessages = {
14 "I101": QCoreApplication.translate( 14 "I-101": QCoreApplication.translate(
15 "ImportsChecker", "local import must be at the beginning of the method body" 15 "ImportsChecker", "local import must be at the beginning of the method body"
16 ), 16 ),
17 "I102": QCoreApplication.translate( 17 "I-102": QCoreApplication.translate(
18 "ImportsChecker", 18 "ImportsChecker",
19 "packages from external modules should not be imported locally", 19 "packages from external modules should not be imported locally",
20 ), 20 ),
21 "I103": QCoreApplication.translate( 21 "I-103": QCoreApplication.translate(
22 "ImportsChecker", 22 "ImportsChecker",
23 "packages from standard modules should not be imported locally", 23 "packages from standard modules should not be imported locally",
24 ), 24 ),
25 "I901": QCoreApplication.translate( 25 "I-901": QCoreApplication.translate(
26 "ImportsChecker", "unnecessary import alias - rewrite as '{0}'" 26 "ImportsChecker", "unnecessary import alias - rewrite as '{0}'"
27 ), 27 ),
28 "I902": QCoreApplication.translate("ImportsChecker", "banned import '{0}' used"), 28 "I-902": QCoreApplication.translate("ImportsChecker", "banned import '{0}' used"),
29 "I903": QCoreApplication.translate( 29 "I-903": QCoreApplication.translate(
30 "ImportsChecker", "relative imports from parent modules are banned" 30 "ImportsChecker", "relative imports from parent modules are banned"
31 ), 31 ),
32 "I904": QCoreApplication.translate("ImportsChecker", "relative imports are banned"), 32 "I-904": QCoreApplication.translate("ImportsChecker", "relative imports are banned"),
33 } 33 }
34 34
35 _importsMessagesSampleArgs = { 35 _importsMessagesSampleArgs = {
36 "I901": ["from foo import bar"], 36 "I-901": ["from foo import bar"],
37 "I902": ["foo"], 37 "I-902": ["foo"],
38 } 38 }

eric ide

mercurial