-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
112 lines (100 loc) · 3.97 KB
/
pyproject.toml
File metadata and controls
112 lines (100 loc) · 3.97 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
[project]
name = "amplifier-module-provider-github-copilot"
version = "2.0.0"
description = "GitHub Copilot provider for Amplifier - Three-Medium Architecture"
readme = "README.md"
requires-python = ">=3.11"
license = {text = "MIT"}
authors = [
{name = "Amplifier Team", email = "amplifier@microsoft.com"}
]
keywords = ["amplifier", "github-copilot", "llm", "provider", "ai", "language-model"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = [
# GitHub Copilot SDK
# - v0.2.0: Breaking changes - SubprocessConfig, send(prompt, attachments=...)
"github-copilot-sdk>=0.2.0,<0.3.0",
# PyYAML for config loading
"pyyaml>=6.0",
# Note: amplifier-core is provided by Amplifier runtime when module is loaded
# Listed here for type hints only; not installed at runtime
]
[project.urls]
Homepage = "https://github.com/microsoft/amplifier-module-provider-github-copilot"
Repository = "https://github.com/microsoft/amplifier-module-provider-github-copilot"
Documentation = "https://github.com/microsoft/amplifier-module-provider-github-copilot#readme"
[project.optional-dependencies]
dev = [
"ruff>=0.3.0",
"pyright>=1.1.350",
"pytest>=9.0.3",
"pytest-asyncio>=0.21",
"pytest-cov>=7.0.0",
# amplifier-core from PyPI (binary wheels, no Rust compilation needed)
"amplifier-core>=1.0.7",
]
[project.entry-points."amplifier.modules"]
provider-github-copilot = "amplifier_module_provider_github_copilot:mount"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["amplifier_module_provider_github_copilot"]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
[tool.pyright]
pythonVersion = "3.11"
typeCheckingMode = "strict"
include = ["amplifier_module_provider_github_copilot", "tests"]
exclude = ["run_*.py"]
# Custom type stubs for external packages (copilot SDK, amplifier-core)
stubPath = "typings"
# Use local venv for package resolution
venvPath = "."
venv = ".venv"
# Exclude stub-related errors for pytest (has inline types but pyright strict mode is pedantic)
reportMissingTypeStubs = false
# amplifier_core and copilot SDK are runtime-only packages (live in the amplifier uv tool,
# not in the dev venv). Their types are fully covered by typings/ stub files.
# reportMissingModuleSource fires when stubs exist but source is absent from the dev venv —
# correct pyright setting for intentional runtime-only packages with hand-written stubs.
reportMissingModuleSource = "none"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
asyncio_mode = "auto"
# Live tests excluded by default (CI-friendly) - run with: pytest -m live
# Or run all tests with: pytest -m ""
# Contract: tests run and FAIL if credentials missing, never skip
addopts = "-m 'not live'"
markers = [
"live: marks tests requiring real credentials (run explicitly with -m live)",
"sdk_assumption: marks tests verifying SDK types/shapes exist",
"security: marks tests verifying security invariants (injection, redaction, sanitization)",
]
# Note: [dependency-groups] removed — use [project.optional-dependencies] dev instead
# The pytest-cov dependency has been consolidated into [project.optional-dependencies] dev