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

changeset 8248
b00c1c6cc312
equal deleted inserted replaced
8247:e718d3a47f78 8248:b00c1c6cc312
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2021 Detlev Offenbach <detlev@die-offenbachs.de>
4 #
5
6 """
7 Module implementing complex defaults for the annotations checker.
8 """
9
10 AnnotationsCheckerDefaultArgs = {
11 # Annotations
12 "SuppressNoneReturning": False,
13 "SuppressDummyArgs": False,
14 "AllowUntypedDefs": False,
15 "AllowUntypedNested": False,
16 "MypyInitReturn": False,
17 "DispatchDecorators": ["singledispatch", "singledispatchmethod"],
18 "OverloadDecorators": ["overload"],
19
20 # Annotation Coverage
21 "MinimumCoverage": 75, # % of type annotation coverage
22
23 # Annotation Complexity
24 "MaximumComplexity": 3,
25 "MaximumLength": 7,
26 }

eric ide

mercurial