https://github.com/GPflow/GPflow
Revision a464b22e43282c98eb0e40b97df9738cd322979a authored by Jesper Nielsen on 15 February 2022, 14:30:39 UTC, committed by GitHub on 15 February 2022, 14:30:39 UTC
1 parent c49d701
Raw File
Tip revision: a464b22e43282c98eb0e40b97df9738cd322979a authored by Jesper Nielsen on 15 February 2022, 14:30:39 UTC
Add type hints to expectations, likelihoods, and posterior tests. (#1780)
Tip revision: a464b22
mypy.ini
[mypy]
; First we turn on *all the checks*, and then we turn off those that are too annoying.
strict = True
ignore_missing_imports = True
disallow_subclassing_any = False
disallow_untyped_calls = False
disallow_untyped_decorators = False
; It would actually be good to disallow implicit reexport, but that will take some effort to be
; strict about our use of __all__.
implicit_reexport = True
; Remove this when we think we're done.
warn_return_any = False

; the following modules are not passing mypy, so we're skipping them until they've been fixed up.
; see github issue https://github.com/GPflow/GPflow/issues/1368 for more information. Note that some
; modules that haven't had types added are passing anyway so may not appear below.
;
; remove modules from this skip list when types have been added
[mypy-gpflow.conditionals.*,tests.gpflow.conditionals.*]
ignore_errors = True

[mypy-gpflow.kernels.*,tests.gpflow.kernels.*]
ignore_errors = True

[mypy-gpflow.mean_functions]
ignore_errors = True

[mypy-gpflow.models.*,tests.gpflow.models.*]
ignore_errors = True

[mypy-gpflow.monitor.*]
ignore_errors = True

[mypy-gpflow.optimizers.mcmc,gpflow.optimizers.natgrad,tests.gpflow.optimizers.*]
ignore_errors = True

[mypy-gpflow.utilities.*,tests.gpflow.utilities.*]
ignore_errors = True

[mypy-tests.integration.*]
ignore_errors = True
back to top