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

Tue, 23 May 2023 12:00:37 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 23 May 2023 12:00:37 +0200
branch
eric7
changeset 10053
9914b7b4b11c
parent 10043
f1427d95cfde
child 10087
65b7354b0d4c
permissions
-rw-r--r--

Code Style Checker
- Added a checker for unused global variables.

# -*- 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,
}

eric ide

mercurial