Plugins/CheckerPlugins/CodeStyleChecker/translations.py

changeset 6246
fe07a9f16f23
parent 6184
789e88d94899
child 6264
04a671fa4adb
--- a/Plugins/CheckerPlugins/CodeStyleChecker/translations.py	Fri Apr 13 18:50:57 2018 +0200
+++ b/Plugins/CheckerPlugins/CodeStyleChecker/translations.py	Fri Apr 13 22:32:32 2018 +0200
@@ -122,6 +122,9 @@
     "E251": QCoreApplication.translate(
         "pycodestyle",
         "unexpected spaces around keyword / parameter equals"),
+    "E252": QCoreApplication.translate(
+        "pycodestyle",
+        "missing whitespace around parameter equals"),
     "E261": QCoreApplication.translate(
         "pycodestyle",
         "at least two spaces before inline comment"),
@@ -160,10 +163,10 @@
         "blank line contains whitespace"),
     "E301": QCoreApplication.translate(
         "pycodestyle",
-        "expected 1 blank line, found 0"),
+        "expected {0} blank line, found 0"),
     "E302": QCoreApplication.translate(
         "pycodestyle",
-        "expected 2 blank lines, found {0}"),
+        "expected {0} blank lines, found {1}"),
     "E303": QCoreApplication.translate(
         "pycodestyle",
         "too many blank lines ({0})"),
@@ -172,11 +175,11 @@
         "blank lines found after function decorator"),
     "E305": QCoreApplication.translate(
         "pycodestyle",
-        "expected 2 blank lines after class or function definition,"
-        " found {0}"),
+        "expected {0} blank lines after class or function definition,"
+        " found {1}"),
     "E306": QCoreApplication.translate(
         "pycodestyle",
-        "expected 1 blank line before a nested definition, found 0"),
+        "expected {0} blank line before a nested definition, found 0"),
     "W391": QCoreApplication.translate(
         "pycodestyle",
         "blank line at end of file"),
@@ -195,6 +198,9 @@
     "W503": QCoreApplication.translate(
         "pycodestyle",
         "line break before binary operator"),
+    "W504": QCoreApplication.translate(
+        "pycodestyle",
+        "line break after binary operator"),
     "W601": QCoreApplication.translate(
         "pycodestyle",
         ".has_key() is deprecated, use 'in'"),
@@ -207,6 +213,12 @@
     "W604": QCoreApplication.translate(
         "pycodestyle",
         "backticks are deprecated, use 'repr()'"),
+    "W605": QCoreApplication.translate(
+        "pycodestyle",
+        "invalid escape sequence '\\{0}'"),
+    "W606": QCoreApplication.translate(
+        "pycodestyle",
+        "'async' and 'await' are reserved keywords starting with Python 3.7"),
     "E701": QCoreApplication.translate(
         "pycodestyle",
         "multiple statements on one line (colon)"),
@@ -778,10 +790,13 @@
     "E231": [",;:"],
     "E241": [",;:"],
     "E242": [",;:"],
-    "E302": [1],
+    "E301": [1],
+    "E302": [2, 1],
     "E303": [3],
-    "E305": [1],
+    "E305": [2, 1],
+    "E306": [1],
     "E501": [85, 79],
+    "E605": ["A"],
     "E711": ["None", "'if cond is None:'"],
     "E712": ["True", "'if cond is True:' or 'if cond:'"],
     "E741": ["l"],
@@ -851,3 +866,6 @@
         return QCoreApplication.translate(
             "CodeStyleFixer", " no message defined for code '{0}'")\
             .format(message)
+
+#
+# eflag: noqa = M201

eric ide

mercurial