1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 22:40:12 +01:00
fdroidserver/mypy.ini

18 lines
845 B
INI
Raw Normal View History

2021-03-12 08:49:40 +01:00
[mypy]
files = fdroidserver
2021-06-18 06:11:39 +02:00
# exclude vendored file
exclude = fdroidserver/apksigcopier.py
2021-03-12 08:49:40 +01:00
# this is de-facto the linter setting for this file
warn_unused_configs = True
# TODO: we should either upgrade the used packages to a version which includes type hints OR install/write stub packages for these libraries.
# Further details here: https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-type-hints-for-third-party-library
ignore_missing_imports = True
# ignore the [no-redef] errors, as they collide with the bandit "# nosec" exclusion (common.py)
# unfortunately both tools expect their ignore flag as a comment in the same line
# [misc] is ignored for the "incompatible import"
# [arg-type] is ignored because when there are missing envs, everything will crash, not just the types
2021-06-18 06:11:39 +02:00
disable_error_code = no-redef, misc, arg-type