forked from Tracer-Cloud/opensre
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmypy.ini
More file actions
53 lines (41 loc) · 1.5 KB
/
Copy pathmypy.ini
File metadata and controls
53 lines (41 loc) · 1.5 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
[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
# 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-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
[mypy-pyodbc]
ignore_missing_imports = True
# Hugging Face `datasets` has no py.typed; error is attributed to the importer.
[mypy-app.integrations.opensre.hf_remote]
disable_error_code = import-untyped
# Per-module overrides
[mypy-app.tools.utils.data_validation]
check_untyped_defs = False