Changed default max. line length of code documentation style checker and code style fixer to 88 characters because this gives better looking code (see 'Black' tool). eric7

Sun, 26 Jun 2022 17:21:11 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 26 Jun 2022 17:21:11 +0200
branch
eric7
changeset 9179
9ae7ca51e347
parent 9178
86671dd6f592
child 9180
e628d31e2a10

Changed default max. line length of code documentation style checker and code style fixer to 88 characters because this gives better looking code (see 'Black' tool).

eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleFixer.py file | annotate | diff | comparison | revisions
eric7/Plugins/CheckerPlugins/CodeStyleChecker/DocStyle/DocStyleChecker.py file | annotate | diff | comparison | revisions
--- a/eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleFixer.py	Sun Jun 26 16:42:04 2022 +0200
+++ b/eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleFixer.py	Sun Jun 26 17:21:11 2022 +0200
@@ -2457,7 +2457,7 @@
     """
     Class used to shorten lines to a given maximum of characters.
     """
-    def __init__(self, curLine, prevLine, nextLine, maxLength=79, eol="\n",
+    def __init__(self, curLine, prevLine, nextLine, maxLength=88, eol="\n",
                  indentWord="    ", isDocString=False):
         """
         Constructor
--- a/eric7/Plugins/CheckerPlugins/CodeStyleChecker/DocStyle/DocStyleChecker.py	Sun Jun 26 16:42:04 2022 +0200
+++ b/eric7/Plugins/CheckerPlugins/CodeStyleChecker/DocStyle/DocStyleChecker.py	Sun Jun 26 17:21:11 2022 +0200
@@ -138,7 +138,7 @@
     ]
 
     def __init__(self, source, filename, select, ignore, expected, repeat,
-                 maxLineLength=79, docType="pep257"):
+                 maxLineLength=88, docType="pep257"):
         """
         Constructor
         

eric ide

mercurial