eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/AnnotationsCheckerDefaults.py

branch
eric7
changeset 8312
800c432b34c8
parent 8248
b00c1c6cc312
child 8881
54e42bc2437a
diff -r 4e8b98454baa -r 800c432b34c8 eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/AnnotationsCheckerDefaults.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Annotations/AnnotationsCheckerDefaults.py	Sat May 15 18:45:04 2021 +0200
@@ -0,0 +1,26 @@
+# -*- coding: utf-8 -*-
+
+# Copyright (c) 2021 Detlev Offenbach <detlev@die-offenbachs.de>
+#
+
+"""
+Module implementing complex defaults for the annotations checker.
+"""
+
+AnnotationsCheckerDefaultArgs = {
+    # Annotations
+    "SuppressNoneReturning": False,
+    "SuppressDummyArgs": False,
+    "AllowUntypedDefs": False,
+    "AllowUntypedNested": False,
+    "MypyInitReturn": False,
+    "DispatchDecorators": ["singledispatch", "singledispatchmethod"],
+    "OverloadDecorators": ["overload"],
+    
+    # Annotation Coverage
+    "MinimumCoverage": 75,      # % of type annotation coverage
+    
+    # Annotation Complexity
+    "MaximumComplexity": 3,
+    "MaximumLength": 7,
+}

eric ide

mercurial