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