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

branch
eric7
changeset 9209
b99e7fd55fd3
parent 8881
54e42bc2437a
child 9221
bf71ee032bb4
equal deleted inserted replaced
9208:3fc8dfeb6ebe 9209:b99e7fd55fd3
1 # -*- coding: utf-8 -*-
2
3 # Copyright (c) 2021 - 2022 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