forked from openai/evals
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mypy.ini
47 lines (36 loc) · 1014 Bytes
/
mypy.ini
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
[mypy]
python_version=3.9
mypy_path=$MYPY_CONFIG_FILE_DIR/typings
; Not all dependencies have type annotations; ignore this.
ignore_missing_imports=True
namespace_packages=True
explicit_package_bases = True
; Be strict about certain rules.
strict_equality=True
warn_unused_configs=True
no_implicit_optional=True
strict_optional=True
warn_redundant_casts=True
warn_unused_ignores=True
check_untyped_defs=True
; By default, code is not checked for type errors.
ignore_errors=True
disallow_untyped_defs=False
; However, some directories that are fully type-annotated and don't have type errors have opted in
; to type checking.
[mypy-evals.registry]
ignore_errors=False
disallow_untyped_defs=True
[mypy-evals.cli.oaievalset]
ignore_errors=False
disallow_untyped_defs=True
[mypy-evals.cli.oaieval]
ignore_errors=False
disallow_untyped_defs=True
[mypy-scripts.*]
ignore_errors=False
disallow_untyped_defs=True
[mypy-openai.*]
ignore_errors=False
disallow_untyped_defs=True
; TODO: Add the other modules here