-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmypy.ini
43 lines (31 loc) · 1.06 KB
/
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
[mypy]
# Specify the Python version for type checking (optional).
python_version = 3.11
disable_error_code = var-annotated, has-type
# Exclude directories or files from type checking.
exclude = ^venv/ # Exclude the 'venv' directory
# Enable strict type checking.
strict = False
# Display more detailed error messages.
show_error_codes = True
# Specify which errors or error codes to ignore.
ignore_missing_imports = True
# Enable type checking for runtime functions.
check_untyped_defs = False
# Warn about unsound code.
warn_unreachable = True
# Warn about unannotated function signatures.
warn_unused_configs = True
# Customize the output formatting.
show_column_numbers = True
show_error_context = True
# Specify type checking plugins (if any).
# plugins = mypy.plugins.django_plugin
# Perform type checking on imports.
# warn_redundant_casts = True
# Configure strict type checking for specific modules or packages.
[mypy-my_module]
strict = False
# Configure strict type checking for specific modules or packages within a package.
[mypy-my_package.*]
strict = False