/evals/mypy.ini
1[mypy]
2python_version=3.9
3
4mypy_path=$MYPY_CONFIG_FILE_DIR/typings
5
6; Not all dependencies have type annotations; ignore this.
7ignore_missing_imports=True
8namespace_packages=True
9explicit_package_bases = True
10
11; Be strict about certain rules.
12strict_equality=True
13warn_unused_configs=True
14no_implicit_optional=True
15strict_optional=True
16warn_redundant_casts=True
17warn_unused_ignores=True
18check_untyped_defs=True
19
20; By default, code is not checked for type errors.
21ignore_errors=True
22disallow_untyped_defs=False
23
24; However, some directories that are fully type-annotated and don't have type errors have opted in
25; to type checking.
26
27[mypy-evals.registry]
28ignore_errors=False
29disallow_untyped_defs=True
30
31[mypy-evals.cli.oaievalset]
32ignore_errors=False
33disallow_untyped_defs=True
34
35[mypy-evals.cli.oaieval]
36ignore_errors=False
37disallow_untyped_defs=True
38
39[mypy-scripts.*]
40ignore_errors=False
41disallow_untyped_defs=True
42
43[mypy-openai.*]
44ignore_errors=False
45disallow_untyped_defs=True
46
47; TODO: Add the other modules here
48
1[mypy]
2python_version=3.9
3
4mypy_path=$MYPY_CONFIG_FILE_DIR/typings
5
6; Not all dependencies have type annotations; ignore this.
7ignore_missing_imports=True
8namespace_packages=True
9explicit_package_bases = True
10
11; Be strict about certain rules.
12strict_equality=True
13warn_unused_configs=True
14no_implicit_optional=True
15strict_optional=True
16warn_redundant_casts=True
17warn_unused_ignores=True
18check_untyped_defs=True
19
20; By default, code is not checked for type errors.
21ignore_errors=True
22disallow_untyped_defs=False
23
24; However, some directories that are fully type-annotated and don't have type errors have opted in
25; to type checking.
26
27[mypy-evals.registry]
28ignore_errors=False
29disallow_untyped_defs=True
30
31[mypy-evals.cli.oaievalset]
32ignore_errors=False
33disallow_untyped_defs=True
34
35[mypy-evals.cli.oaieval]
36ignore_errors=False
37disallow_untyped_defs=True
38
39[mypy-scripts.*]
40ignore_errors=False
41disallow_untyped_defs=True
42
43[mypy-openai.*]
44ignore_errors=False
45disallow_untyped_defs=True
46
47; TODO: Add the other modules here
48