20 ), |
20 ), |
21 "I103": QCoreApplication.translate( |
21 "I103": 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 "I201": QCoreApplication.translate( |
|
26 "ImportsChecker", |
|
27 "Import statements are in the wrong order. '{0}' should be before '{1}'", |
|
28 ), |
|
29 "I202": QCoreApplication.translate( |
|
30 "ImportsChecker", "Imported names are in the wrong order. Should be '{0}'" |
|
31 ), |
|
32 "I203": QCoreApplication.translate( |
|
33 "ImportsChecker", |
|
34 "Import statements should be combined. '{0}' should be combined with '{1}'", |
|
35 ), |
|
36 "I204": QCoreApplication.translate( |
|
37 "ImportsChecker", |
|
38 "The names in __all__ are in the wrong order. The order should be '{0}'", |
|
39 ), |
|
40 "I901": QCoreApplication.translate( |
25 "I901": QCoreApplication.translate( |
41 "ImportsChecker", "unnecessary import alias - rewrite as '{0}'" |
26 "ImportsChecker", "unnecessary import alias - rewrite as '{0}'" |
42 ), |
27 ), |
43 "I902": QCoreApplication.translate("ImportsChecker", "banned import '{0}' used"), |
28 "I902": QCoreApplication.translate("ImportsChecker", "banned import '{0}' used"), |
44 "I903": QCoreApplication.translate( |
29 "I903": QCoreApplication.translate( |
46 ), |
31 ), |
47 "I904": QCoreApplication.translate("ImportsChecker", "relative imports are banned"), |
32 "I904": QCoreApplication.translate("ImportsChecker", "relative imports are banned"), |
48 } |
33 } |
49 |
34 |
50 _importsMessagesSampleArgs = { |
35 _importsMessagesSampleArgs = { |
51 "I201": ["import bar", "import foo"], |
|
52 "I202": ["bar, baz, foo"], |
|
53 "I203": ["from foo import bar", "from foo import baz"], |
|
54 "I204": ["bar, baz, foo"], |
|
55 "I901": ["from foo import bar"], |
36 "I901": ["from foo import bar"], |
56 "I902": ["foo"], |
37 "I902": ["foo"], |
57 } |
38 } |