mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-03-26 21:33:25 +00:00
* Make type checking more strict. * mypy: warn about unreachable code. * Enable warn_redundant_casts. * Enable strict_bytes. * Look at some warn_return_any warnings.
25 lines
756 B
INI
25 lines
756 B
INI
# Copyright (c) Ansible Project
|
|
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
[mypy]
|
|
check_untyped_defs = True
|
|
# disallow_untyped_defs = True -- not yet feasible
|
|
|
|
# strict = True -- only try to enable once everything (including dependencies!) is typed
|
|
strict_equality = True
|
|
strict_bytes = True
|
|
|
|
warn_redundant_casts = True
|
|
# warn_return_any = True
|
|
warn_unreachable = True
|
|
|
|
[mypy-ansible.*]
|
|
# ansible-core has no typing information
|
|
# ignore_missing_imports = True
|
|
follow_untyped_imports = True
|
|
|
|
[mypy-ansible_collections.community.internal_test_tools.*]
|
|
# community.internal_test_tools has no typing information
|
|
ignore_missing_imports = True
|