-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
124 lines (110 loc) · 3.03 KB
/
pyproject.toml
File metadata and controls
124 lines (110 loc) · 3.03 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
113
114
115
116
117
118
119
120
121
122
123
124
[project]
name = "ionq-core"
version = "0.1.1"
description = "A client library for accessing IonQ Cloud Platform API"
license = "Apache-2.0"
license-files = ["LICENSE"]
readme = "README.md"
requires-python = ">=3.11"
authors = [{name = "IonQ", email = "support@ionq.co"}]
keywords = ["ionq", "quantum", "quantum-computing", "sdk", "api-client"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Physics",
"Typing :: Typed",
]
dependencies = [
"httpx>=0.27,<0.29",
"httpx-retries>=0.5",
"attrs>=24.2",
"python-dateutil>=2.9",
]
[project.urls]
Homepage = "https://ionq.com"
Documentation = "https://ionq.github.io/ionq-core-python/"
Repository = "https://github.com/ionq/ionq-core-python"
Changelog = "https://github.com/ionq/ionq-core-python/blob/main/CHANGELOG.md"
Issues = "https://github.com/ionq/ionq-core-python/issues"
[dependency-groups]
dev = [
"pytest>=9",
"pytest-httpx>=0.36",
"pytest-asyncio>=1",
"pytest-cov>=7",
"ruff>=0.15.12",
"ty",
"pdoc>=16",
]
regen = [
"oas-patch==0.6.0",
"openapi-python-client==0.28.3",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["ionq_core"]
[tool.ruff]
target-version = "py311"
line-length = 120
extend-exclude = [
"ionq_core/api",
"ionq_core/models",
"ionq_core/client.py",
"ionq_core/errors.py",
"ionq_core/types.py",
]
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM", "RUF"]
[tool.ruff.lint.isort]
known-first-party = ["ionq_core"]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["RUF012"]
[tool.ty.environment]
python-version = "3.11"
[[tool.ty.overrides]]
include = ["ionq_core/models/**", "ionq_core/api/**"]
[tool.ty.overrides.rules]
invalid-argument-type = "ignore"
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
xfail_strict = true
filterwarnings = [
"error",
"ignore:Exception ignored in.*SSL.*:pytest.PytestUnraisableExceptionWarning",
]
markers = [
"integration: marks tests that hit the real IonQ API (deselect with '-m \"not integration\"')",
]
addopts = "-m 'not integration' --tb=short --cov=ionq_core --cov-fail-under=100"
[tool.coverage.run]
branch = true
omit = [
"ionq_core/api/*",
"ionq_core/models/*",
"ionq_core/client.py",
"ionq_core/errors.py",
"ionq_core/types.py",
]
[tool.coverage.report]
show_missing = true
skip_covered = true
exclude_also = [
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"except PackageNotFoundError:",
"@overload",
'if __name__ == "__main__":',
]