mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
Migrate idf.py and its actions to the shared esp-pylib library: - add esp-pylib (and esp-pylib[ide]) to the core/ide requirements - base FatalError on esp_pylib.errors.FatalError, keeping the idf.py ctx cleanup - replace the local raw-ANSI helpers (red_print/yellow_print/print_warning/ color_print) with esp_pylib.logger.log (warn/err/note/hint) across the idf.py actions - install esp_pylib exception reporting at the idf.py entry point and silence the logger during shell completion - update affected tests for the new prefixes/line wrapping - add normalize_output() helper and unify terminal env in conftest to handle Rich line-wrapping in CI assertions Co-authored-by: Cursor <cursoragent@cursor.com>
31 lines
1.1 KiB
INI
31 lines
1.1 KiB
INI
[mypy]
|
|
|
|
# Specifies the Python version used to parse and check the target program
|
|
python_version = 3.10
|
|
|
|
# Disallows defining functions without type annotations or with incomplete type annotations
|
|
# True => enforce type annotation in all function definitions
|
|
disallow_untyped_defs = True
|
|
|
|
# Shows a warning when returning a value with type Any from a function declared with a non- Any return type
|
|
warn_return_any = True
|
|
|
|
# Shows errors for missing return statements on some execution paths
|
|
warn_no_return = True
|
|
|
|
# Suppress error messages about imports that cannot be resolved
|
|
# True => ignore all import errors
|
|
ignore_missing_imports = True
|
|
|
|
# Disallows defining functions with incomplete type annotations
|
|
disallow_incomplete_defs = False
|
|
|
|
# Directs what to do with imports when the imported module is found as a .py file and not part of the files,
|
|
# modules and packages provided on the command line.
|
|
# SKIP -> mypy checks only single file, not included imports
|
|
follow_imports = skip
|
|
|
|
[mypy-esp_pylib.*]
|
|
# esp-pylib ships py.typed; follow it so NoReturn on log.die() is visible for type narrowing
|
|
follow_imports = normal
|