src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/DocStyle/DocStyleChecker.py

branch
eric7
changeset 10069
435cc5875135
parent 9653
e67609152c5e
child 10418
4573827e9815
diff -r 7febcdccb2a1 -r 435cc5875135 src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/DocStyle/DocStyleChecker.py
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/DocStyle/DocStyleChecker.py	Thu May 25 11:12:05 2023 +0200
+++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/DocStyle/DocStyleChecker.py	Thu May 25 19:51:47 2023 +0200
@@ -759,7 +759,7 @@
             self.__error(docstringContext.end(), 0, "D206")
             return
 
-    def __checkTripleDoubleQuotes(self, docstringContext, context):
+    def __checkTripleDoubleQuotes(self, docstringContext, context):  # noqa: U100
         """
         Private method to check, that all docstrings are surrounded
         by triple double quotes.
@@ -774,7 +774,7 @@
         if not docstring.startswith(('"""', 'r"""', 'u"""')):
             self.__error(docstringContext.start(), 0, "D111")
 
-    def __checkBackslashes(self, docstringContext, context):
+    def __checkBackslashes(self, docstringContext, context):  # noqa: U100
         """
         Private method to check, that all docstrings containing
         backslashes are surrounded by raw triple double quotes.
@@ -840,7 +840,7 @@
         if indent != expectedIndent:
             self.__error(docstringContext.start(), 0, "D122")
 
-    def __checkSummary(self, docstringContext, context):
+    def __checkSummary(self, docstringContext, context):  # noqa: U100
         """
         Private method to check, that docstring summaries contain some text.
 
@@ -854,7 +854,7 @@
         if summary == "":
             self.__error(docstringContext.start() + lineNumber, 0, "D130")
 
-    def __checkEndsWithPeriod(self, docstringContext, context):
+    def __checkEndsWithPeriod(self, docstringContext, context):  # noqa: U100
         """
         Private method to check, that docstring summaries end with a period.
 
@@ -868,7 +868,7 @@
         if not summary.endswith("."):
             self.__error(docstringContext.start() + lineNumber, 0, "D131")
 
-    def __checkImperativeMood(self, docstringContext, context):
+    def __checkImperativeMood(self, docstringContext, context):  # noqa: U100
         """
         Private method to check, that docstring summaries are in
         imperative mood.
@@ -990,7 +990,7 @@
         if contextLines[end + 1].strip():
             self.__error(docstringContext.end(), 0, "D143")
 
-    def __checkBlankAfterSummary(self, docstringContext, context):
+    def __checkBlankAfterSummary(self, docstringContext, context):  # noqa: U100
         """
         Private method to check, that docstring summaries are followed
         by a blank line.
@@ -1010,7 +1010,7 @@
         if len(docstrings) > 2 and docstrings[lineNumber + 1].strip():
             self.__error(docstringContext.start() + lineNumber, 0, "D144")
 
-    def __checkBlankAfterLastParagraph(self, docstringContext, context):
+    def __checkBlankAfterLastParagraph(self, docstringContext, context):  # noqa: U100
         """
         Private method to check, that the last paragraph of docstrings is
         followed by a blank line.
@@ -1033,7 +1033,7 @@
     ## Checking functionality below (eric specific ones)
     ##################################################################
 
-    def __checkEricQuotesOnSeparateLines(self, docstringContext, context):
+    def __checkEricQuotesOnSeparateLines(self, docstringContext, context):  # noqa: U100
         """
         Private method to check, that leading and trailing quotes are on
         a line by themselves.
@@ -1050,7 +1050,7 @@
         if lines[-1].strip().strip("\"'"):
             self.__error(docstringContext.end(), 0, "D222")
 
-    def __checkEricEndsWithPeriod(self, docstringContext, context):
+    def __checkEricEndsWithPeriod(self, docstringContext, context):  # noqa: U100
         """
         Private method to check, that docstring summaries end with a period.
 
@@ -1295,7 +1295,7 @@
                     if signal not in definedSignals:
                         self.__error(docstringContext.end(), 0, "D263", signal)
 
-    def __checkEricBlankAfterSummary(self, docstringContext, context):
+    def __checkEricBlankAfterSummary(self, docstringContext, context):  # noqa: U100
         """
         Private method to check, that docstring summaries are followed
         by a blank line.
@@ -1374,7 +1374,9 @@
 
                 self.__error(docstringContext.end(), 0, "D245")
 
-    def __checkEricNBlankAfterLastParagraph(self, docstringContext, context):
+    def __checkEricNBlankAfterLastParagraph(
+        self, docstringContext, context  # noqa: U100
+    ):
         """
         Private method to check, that the last paragraph of docstrings is
         not followed by a blank line.

eric ide

mercurial