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

Thu, 18 Jan 2024 13:10:08 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 18 Jan 2024 13:10:08 +0100
branch
eric7
changeset 10510
fa7b8ebfbe13
parent 10439
21c28b0f9e41
child 10753
031cfa81992a
permissions
-rw-r--r--

Code Style Checker
- Updated the 'Miscellaneous' checkers to support more cases.

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

# Copyright (c) 2021 - 2024 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