-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmypy.ini
More file actions
78 lines (74 loc) · 2.39 KB
/
Copy pathmypy.ini
File metadata and controls
78 lines (74 loc) · 2.39 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
# mypy.ini — Batch P1-C
#
# Strict type-checking is enabled only for the modules listed below. This
# avoids forcing legacy code through ``mypy --strict`` in a single jump
# while still locking the type-safety of every new module landing in the
# repo. Add new modules here as part of the PR that introduces them.
#
# Run via `make typecheck` locally or the CI step in coverage.yml.
[mypy]
python_version = 3.11
strict = True
warn_unused_ignores = True
warn_return_any = True
warn_redundant_casts = True
warn_unused_configs = True
no_implicit_optional = True
disallow_any_unimported = False
namespace_packages = True
explicit_package_bases = True
# Strict gate is scoped to the listed files; legacy modules imported
# transitively are not type-checked here (they remain visible to the
# gated modules through their public signatures).
follow_imports = silent
files =
gitpilot/public_api/__init__.py,
gitpilot/flags.py,
gitpilot/agents_md.py,
gitpilot/mentions.py,
gitpilot/context_budget.py,
gitpilot/tool_groups.py,
gitpilot/mcp_toggles.py,
gitpilot/modes.py,
gitpilot/slash_commands.py,
gitpilot/checkpoints.py,
gitpilot/rules.py,
gitpilot/sandbox.py,
gitpilot/trusted_folders.py,
gitpilot/errors.py,
gitpilot/doctor.py,
gitpilot/prompt_cache.py,
gitpilot/tool_def_pruner.py,
gitpilot/context_cache.py,
gitpilot/streaming.py,
gitpilot/warmup.py,
gitpilot/init_wizard.py,
gitpilot/_deprecation.py,
gitpilot/plan_guards.py,
gitpilot/context_meter.py,
gitpilot/task_recorder.py,
gitpilot/grep_backend.py,
gitpilot/auto_compact.py,
gitpilot/explorer_summary.py,
gitpilot/repo_map.py,
gitpilot/rag/__init__.py,
gitpilot/rag/chunker.py,
gitpilot/rag/embedder.py,
gitpilot/rag/indexer.py,
gitpilot/rag/retriever.py,
gitpilot/rag/store.py,
gitpilot/edit_backend.py,
gitpilot/rag_consent.py,
gitpilot/query_router.py,
gitpilot/agent_prompts.py
# The minimal in-tree skill front-matter parser uses dynamic typing for
# its returned dict; keep it permissive without weakening the gate.
[mypy-gitpilot.skills]
ignore_errors = True
# Optional third-party libraries — keep mypy quiet when they're absent
# (matrixlab sandbox uses httpx already declared in deps; PyYAML is
# optional with an in-tree fallback).
[mypy-yaml]
ignore_missing_imports = True
[mypy-tiktoken]
ignore_missing_imports = True