mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Restructure mypy.ini to distinguish between "good" exclusions and "bad" ones.
This commit is contained in:
@@ -7,6 +7,31 @@ pretty = True
|
||||
no_implicit_reexport = True
|
||||
no_implicit_optional = True
|
||||
|
||||
# green list - work on growing these please!
|
||||
[mypy-galaxy.util.compression_utils]
|
||||
disallow_any_generics = True
|
||||
disallow_subclassing_any = True
|
||||
disallow_untyped_calls = False
|
||||
disallow_untyped_defs = True
|
||||
disallow_incomplete_defs = True
|
||||
disallow_untyped_decorators = True
|
||||
warn_unused_ignores = True
|
||||
warn_return_any = True
|
||||
strict_equality = True
|
||||
|
||||
[mypy-galaxy.tools.wrappers]
|
||||
disallow_any_generics = True
|
||||
disallow_subclassing_any = True
|
||||
disallow_untyped_calls = False
|
||||
disallow_untyped_defs = True
|
||||
disallow_incomplete_defs = True
|
||||
check_untyped_defs = True
|
||||
disallow_untyped_decorators = True
|
||||
no_implicit_optional = True
|
||||
warn_unused_ignores = True
|
||||
strict_equality = True
|
||||
|
||||
# red list - work on reducing these please!
|
||||
[mypy-galaxy.util.oset]
|
||||
# lots of tricky code in here...
|
||||
check_untyped_defs = False
|
||||
@@ -191,17 +216,6 @@ check_untyped_defs = False
|
||||
check_untyped_defs = False
|
||||
[mypy-test.functional.webhooks.tour_generator]
|
||||
check_untyped_defs = False
|
||||
[mypy-galaxy.util.compression_utils]
|
||||
disallow_any_generics = True
|
||||
disallow_subclassing_any = True
|
||||
disallow_untyped_calls = False
|
||||
disallow_untyped_defs = True
|
||||
disallow_incomplete_defs = True
|
||||
check_untyped_defs = True
|
||||
disallow_untyped_decorators = True
|
||||
warn_unused_ignores = True
|
||||
warn_return_any = True
|
||||
strict_equality = True
|
||||
[mypy-galaxy.tools.bundled.filters.gff.gff_filter_by_feature_count]
|
||||
check_untyped_defs = False
|
||||
[mypy-galaxy.tools.bundled.extract.extract_genomic_dna]
|
||||
@@ -298,8 +312,6 @@ check_untyped_defs = False
|
||||
check_untyped_defs = False
|
||||
[mypy-galaxy.tool_shed.tool_shed_registry]
|
||||
check_untyped_defs = False
|
||||
[mypy-galaxy.tool_shed.galaxy_install.migrate.check]
|
||||
check_untyped_defs = False
|
||||
[mypy-galaxy.objectstore.s3]
|
||||
check_untyped_defs = False
|
||||
[mypy-galaxy.objectstore.pithos]
|
||||
@@ -358,17 +370,6 @@ check_untyped_defs = False
|
||||
check_untyped_defs = False
|
||||
[mypy-tool_shed.util.metadata_util]
|
||||
check_untyped_defs = False
|
||||
[mypy-galaxy.tools.wrappers]
|
||||
disallow_any_generics = True
|
||||
disallow_subclassing_any = True
|
||||
disallow_untyped_calls = False
|
||||
disallow_untyped_defs = True
|
||||
disallow_incomplete_defs = True
|
||||
check_untyped_defs = True
|
||||
disallow_untyped_decorators = True
|
||||
no_implicit_optional = True
|
||||
warn_unused_ignores = True
|
||||
strict_equality = True
|
||||
[mypy-galaxy.tools.error_reports.plugins.base_git]
|
||||
check_untyped_defs = False
|
||||
[mypy-galaxy.tool_util.deps.mulled.mulled_build]
|
||||
|
||||
Reference in New Issue
Block a user