Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
91 lines (76 loc) · 2.24 KB
/
Copy pathpyproject.toml
File metadata and controls
91 lines (76 loc) · 2.24 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
[project]
name = "python-codex-sdk"
version = "0.1.2"
description = "Unofficial Python SDK for OpenAI Codex CLI - A port of the official TypeScript SDK"
readme = "README.md"
license = { text = "Apache-2.0" }
authors = [
{ name = "yor-dev", email = "52931599+yor-dev@users.noreply.github.com" },
]
requires-python = ">=3.12"
keywords = ["codex", "openai", "cli", "sdk", "ai", "coding-agent"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = ["aiohttp>=3.13.2", "pydantic>=2.12.4"]
[project.urls]
Homepage = "https://github.com/yor-dev/python-codex-sdk"
Repository = "https://github.com/yor-dev/python-codex-sdk"
[tool.uv.build-backend]
module-name = "codex_sdk"
[build-system]
requires = ["uv_build>=0.9.7,<0.10.0"]
build-backend = "uv_build"
[dependency-groups]
dev = [
"bump2version>=1.0.1",
"mypy>=1.18.2",
"pre-commit>=4.4.0",
"pytest>=8.4.2",
"pytest-asyncio>=1.3.0",
"ruff>=0.14.5",
]
[tool.ruff]
target-version = "py312"
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"N", # pep8-naming
"SIM", # flake8-simplify
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"SIM103", # return the condition directly
"N801", # Class name `bulkArgs` should use CapWords convention
]
unfixable = ["F401"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.mypy]
python_version = "3.12"
strict = true
warn_return_any = true
warn_unused_configs = true
disallow_untyped_calls = false
disallow_untyped_defs = true
disallow_incomplete_defs = true
files = ["."]
mypy_path = ["src"]
[tool.pytest.ini_options]
testpaths = ["tests"]
norecursedirs = ["tmp", ".*", "build", "dist", "__pycache__", "*.egg-info"]