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

Fri, 01 Sep 2023 15:31:04 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 01 Sep 2023 15:31:04 +0200
branch
eric7
changeset 10184
af82cb6e0298
parent 10087
65b7354b0d4c
child 10439
21c28b0f9e41
permissions
-rw-r--r--

Updated some codestyle checkers for imports and too complex annotations.

# -*- coding: utf-8 -*-

# Copyright (c) 2021 - 2023 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,
    "AllowStarArgAny": False,
    "DispatchDecorators": ["singledispatch", "singledispatchmethod"],
    "OverloadDecorators": ["overload"],
    # Annotation Coverage
    "MinimumCoverage": 75,  # % of type annotation coverage
    # Annotation Complexity
    "MaximumComplexity": 3,
    "MaximumLength": 7,
    # Annotations Future
    "ForceFutureAnnotations": False,
    "CheckFutureAnnotations": False,
    # deprecated 'typing' symbols
    "ExemptedTypingSymbols": [],
}

eric ide

mercurial