-
Notifications
You must be signed in to change notification settings - Fork 15
/
setup.cfg
81 lines (70 loc) · 2.66 KB
/
setup.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[aliases]
test=pytest
[tool:pytest]
addopts=--doctest-modules --doctest-ignore-import-errors
norecursedirs=.git build dist *.egg __pycache__ .cache .* migrations docs test/unit_tests/cli/data/generate
testpaths=test/unit_tests orchestrator
junit_suite_name = orchestrator
asyncio_mode = auto
; https://docs.python.org/3/library/warnings.html?highlight=warnings#describing-warning-filters
; filterwarnings line syntax is
; action:message:category:module:line
;
; action = what to do with the matched warning (default, error, ignore, always, module, once)
; message = regex for the warning message to match (leave empty to match by category/module)
; category = full path to warning class to match (leave empty to match by message/module)
; module = the module for which to match raised warnings (leave empty to match by message/category)
filterwarnings=
; TODO #427 ProductBlockModel.name being used as both a ClassVar and a pydantic Field
ignore:Field name "name" shadows an attribute in parent.*:UserWarning:pydantic
markers=
workflow: Test that runs a complete workflow (Slow)
acceptance: Acceptance Tests. Needs special handling.
regression: Tests that cover bugs that are fixed to prevent them from regressing
[mypy]
exclude = (venv|test/unit_tests/cli/data/generate|orchestrator/vendor)
ignore_missing_imports = True
disallow_untyped_calls = True
disallow_untyped_defs = True
disallow_incomplete_defs = True
;check_untyped_defs = True
disallow_untyped_decorators = True
no_implicit_optional = True
strict_optional = True
namespace_packages = true
warn_unused_ignores = True
warn_redundant_casts = True
; Disable due to flaky results in mypy itself
;warn_return_any = True
warn_no_return = True
warn_unreachable = True
implicit_reexport = False
strict_equality = True
show_error_codes = True
show_column_numbers = True
;lineprecision_report = mypy-coverage
plugins = pydantic.mypy, strawberry.ext.mypy_plugin
;Suppress "note: By default the bodies of untyped functions are not checked"
disable_error_code = annotation-unchecked
[pydantic-mypy]
init_forbid_extra = True
init_typed = True
warn_required_dynamic_aliases = True
warn_untyped_fields = True
[mypy-orchestrator.app]
; Has some nwastdlib untyped stuff
disallow_untyped_calls = False
[mypy-test.*]
disallow_untyped_calls = False
disallow_untyped_defs = False
disallow_incomplete_defs = False
[mypy-mutmut_config]
disallow_untyped_calls = False
disallow_untyped_defs = False
disallow_incomplete_defs = False
[mutmut]
paths_to_mutate=orchestrator # You might want to narrow this when actually using
backup=False
runner=pytest -n auto
tests_dir=test/unit_tests/ # You might want to narrow this when actually using
#dict_synonyms=Struct, NamedStruct