-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathmypy.ini
More file actions
72 lines (56 loc) · 2.04 KB
/
Copy pathmypy.ini
File metadata and controls
72 lines (56 loc) · 2.04 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
[mypy]
python_version = 3.13
# Type-check as if the target is Linux regardless of where mypy runs.
# OpenSRE's agent bus and PTY-backed subprocess plumbing use POSIX-only
# APIs (``socket.AF_UNIX``, ``fcntl.flock``, ``pty.openpty``) that
# typeshed exposes only on POSIX. Without this pin, the ``windows-quality``
# job reports false-positive ``attr-defined`` errors against modules
# whose Windows variants legitimately lack those names. Runtime guards
# (``try/except OSError`` around ``openpty``, the bus module being a
# no-op when ``AF_UNIX`` is missing) are what keep Windows runs safe;
# this pin only affects static checks.
platform = linux
warn_return_any = True
warn_unused_configs = True
disallow_untyped_defs = False
ignore_missing_imports = False
# Tests are not type-checked. Top-level ``tests/`` is excluded by living outside
# the mypy source paths; gateway tests live under ``gateway/tests`` (see
# gateway/AGENTS.md) so they are excluded explicitly here to match that policy.
exclude = ^gateway/tests/
# Ignore boto3 import errors - stubs are installed but mypy needs explicit config
[mypy-boto3.*]
ignore_missing_imports = True
[mypy-botocore.*]
ignore_missing_imports = True
[mypy-kubernetes]
ignore_missing_imports = True
[mypy-kubernetes.*]
ignore_missing_imports = True
[mypy-requests]
ignore_missing_imports = True
[mypy-questionary]
ignore_missing_imports = True
[mypy-questionary.*]
ignore_missing_imports = True
[mypy-confluent_kafka]
ignore_missing_imports = True
[mypy-confluent_kafka.*]
ignore_missing_imports = True
# Cloud Logging entry reads are gRPC-only; the stubs ship as the
# yandex_cloud_logs extra, so they are absent from a default checkout.
[mypy-grpc]
ignore_missing_imports = True
[mypy-yandex.cloud.*]
ignore_missing_imports = True
[mypy-google.protobuf.*]
ignore_missing_imports = True
[mypy-apscheduler.*]
ignore_missing_imports = True
[mypy-pyodbc]
ignore_missing_imports = True
[mypy-pyfiglet]
ignore_missing_imports = True
# Per-module overrides
[mypy-core.tool_framework.utils.data_validation]
check_untyped_defs = False