-
Notifications
You must be signed in to change notification settings - Fork 15
/
pyproject.toml
110 lines (102 loc) · 4 KB
/
pyproject.toml
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.pytest.ini_options]
testpaths = ["tests/"]
[tool.coverage.run]
source = ["vivarium"]
[tool.coverage.report]
show_missing = true
[tool.black]
line_length = 94
exclude = '''.*examples.*'''
[tool.isort]
line_length = 94
profile = "black"
multi_line_output = 3 # Vertical Hanging Indent, see https://pypi.org/project/isort/
skip_glob = ["*/examples/*", "**/examples/*"]
[tool.mypy]
# This is the global mypy configuration.
strict = true # See all the enabled flags `mypy --help | grep -A 10 'Strict mode'`
disallow_any_unimported = false
implicit_reexport = true
exclude = [
'build',
# Files below here should have their errors fixed and then be removed from this list
# You will need to remove the mypy: ignore-errors comment from the file heading as well
'docs/source/conf.py',
'setup.py',
'src/vivarium/component.py',
'src/vivarium/examples/boids/forces.py',
'src/vivarium/examples/boids/movement.py',
'src/vivarium/examples/boids/neighbors.py',
'src/vivarium/examples/boids/population.py',
'src/vivarium/examples/boids/visualization.py',
'src/vivarium/examples/disease_model/__init__.py',
'src/vivarium/examples/disease_model/disease.py',
'src/vivarium/examples/disease_model/intervention.py',
'src/vivarium/examples/disease_model/mortality.py',
'src/vivarium/examples/disease_model/observer.py',
'src/vivarium/examples/disease_model/population.py',
'src/vivarium/examples/disease_model/risk.py',
'src/vivarium/framework/components/manager.py',
'src/vivarium/framework/components/parser.py',
'src/vivarium/framework/engine.py',
'src/vivarium/framework/lookup/manager.py',
'src/vivarium/framework/population/manager.py',
'src/vivarium/framework/population/population_view.py',
'src/vivarium/framework/results/interface.py',
'src/vivarium/framework/results/manager.py',
'src/vivarium/framework/results/observer.py',
'src/vivarium/framework/state_machine.py',
'src/vivarium/interface/cli.py',
'src/vivarium/interface/interactive.py',
'src/vivarium/testing_utilities.py',
'tests/conftest.py',
'tests/examples/test_disease_model.py',
'tests/framework/artifact/test_artifact.py',
'tests/framework/artifact/test_hdf.py',
'tests/framework/artifact/test_manager.py',
'tests/framework/components/mocks.py',
'tests/framework/components/test_component.py',
'tests/framework/components/test_manager.py',
'tests/framework/components/test_parser.py',
'tests/framework/lookup/test_interpolation.py',
'tests/framework/lookup/test_lookup.py',
'tests/framework/population/test_manager.py',
'tests/framework/population/test_population_view.py',
'tests/framework/randomness/conftest.py',
'tests/framework/randomness/test_crn.py',
'tests/framework/randomness/test_index_map.py',
'tests/framework/randomness/test_manager.py',
'tests/framework/randomness/test_reproducibility.py',
'tests/framework/randomness/test_stream.py',
'tests/framework/results/helpers.py',
'tests/framework/results/test_context.py',
'tests/framework/results/test_interface.py',
'tests/framework/results/test_manager.py',
'tests/framework/results/test_observation.py',
'tests/framework/results/test_observer.py',
'tests/framework/results/test_stratification.py',
'tests/framework/test_configuration.py',
'tests/framework/test_engine.py',
'tests/framework/test_event.py',
'tests/framework/test_lifecycle.py',
'tests/framework/test_plugins.py',
'tests/framework/test_state_machine.py',
'tests/framework/test_time.py',
'tests/framework/test_utilities.py',
'tests/framework/test_values.py',
'tests/helpers.py',
'tests/interface/test_cli.py',
'tests/interface/test_utilities.py',
]
disable_error_code = []
# handle mypy errors when 3rd party packages are not typed.
[[tool.mypy.overrides]]
module = [
"scipy.*",
"ipywidgets.*",
"Ipython.*",
]
ignore_missing_imports = true