-
Notifications
You must be signed in to change notification settings - Fork 142
Expand file tree
/
Copy pathmypy.ini
More file actions
81 lines (54 loc) · 2.51 KB
/
Copy pathmypy.ini
File metadata and controls
81 lines (54 loc) · 2.51 KB
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
# Copied from pytorch/mypy-strict.ini
[mypy]
python_version = 3.11
show_error_codes = True
show_column_numbers = True
files =
torchci/scripts/reverts.py
[mypy-.github.scripts.get_tutorials_stats]
disable_error_code = attr-defined, return-value
[mypy-.github.scripts.run_with_env_secrets]
disable_error_code = attr-defined, return-value, union-attr
[mypy-aws.lambda.whl_metadata_upload_pep658.lambda_function]
disable_error_code = unused-ignore, import-not-found
[mypy-tools.*]
disable_error_code = import-not-found
[mypy-migrate]
disable_error_code = import-not-found
[mypy-test_migrate]
disable_error_code = import-not-found
[mypy-tools.torchci.*]
disable_error_code = var-annotated, import-not-found, no-untyped-def, unused-ignore
[mypy-tools.torchci.utils]
[mypy-tools.torchci.td.*]
disable_error_code = misc
[mypy-tools.torchci.queue_alert]
disable_error_code = assignment
[mypy-tools.torchci.check_alerts]
disable_error_code = no-any-return, assignment, type-arg, arg-type, return-value, attr-defined
[mypy-tools.torchci.github_analyze]
disable_error_code = no-any-return, union-attr, call-overload, return-value, comparison-overlap
[mypy-tools.stronghold.src.api.compatibility]
disable_error_code = return-value
[mypy-tools.stronghold.tests.*]
disable_error_code = misc, return-value
[mypy-tools.self_hosted_runner_utils.*]
disable_error_code = no-any-return, no-untyped-def, no-untyped-call, import-not-found, import-untyped
[mypy-tools.self_hosted_runner_utils.check_runners_state_org]
disable_error_code = no-any-return, no-untyped-def, no-untyped-call, import-not-found, import-untyped
[mypy-tools.scripts.release_manage_runner_groups]
disable_error_code = no-any-return, no-untyped-def, no-untyped-call, import-not-found, import-untyped
[mypy-tools.tests.test_release_manage_runner_groups]
disable_error_code = no-any-return, no-untyped-def, no-untyped-call, import-not-found, import-untyped
[mypy-tools.scripts.*]
disable_error_code = var-annotated, import-untyped
[mypy-tools.pkg-helpers.*]
disable_error_code = index, no-redef, no-untyped-def, import-not-found, no-untyped-call
[mypy-tools.rockset_migration.*]
disable_error_code = arg-type, attr-defined, return-value, misc, func-returns-value, no-untyped-def, assignment, var-annotated, unused-ignore, truthy-function
# torch and torchvision are not installed in the lint environment. Scripts that
# import them do so defensively at runtime and degrade when they are absent.
[mypy-torch.*]
ignore_missing_imports = True
[mypy-torchvision.*]
ignore_missing_imports = True