-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
128 lines (110 loc) · 4.18 KB
/
Copy pathpyproject.toml
File metadata and controls
128 lines (110 loc) · 4.18 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
125
126
127
128
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "worldoracle"
version = "0.1.4"
description = "NPC contradiction detector and belief repair for game worlds"
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.10"
authors = [{ name = "Sandeep Alluru", email = "onepuncchh@gmail.com" }]
keywords = ["gaming", "npc", "belief-revision", "contradiction", "agents", "mcp", "llmops"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Typing :: Typed",
]
dependencies = [
"click>=8.0",
"rich>=13.0",
]
[project.optional-dependencies]
mcp = ["mcp>=1.0,<2"]
docs = [
"mkdocs>=1.5,<2",
"mkdocs-material>=9.0,<10",
"mkdocstrings[python]>=0.25",
]
api = ["fastapi>=0.110", "uvicorn>=0.29", "httpx>=0.27"]
dev = [
"pytest>=8.0",
"pytest-cov>=5.0",
"ruff>=0.9",
"mypy>=1.10",
"pre-commit>=3.0",
"fastapi>=0.110",
"httpx>=0.27",
]
[project.scripts]
worldoracle = "worldoracle.cli:main"
worldoracle-mcp = "worldoracle.mcp_server:run_server"
[project.urls]
Homepage = "https://github.com/sandeep-alluru/worldoracle"
Repository = "https://github.com/sandeep-alluru/worldoracle"
Documentation = "https://sandeep-alluru.github.io/worldoracle"
Changelog = "https://github.com/sandeep-alluru/worldoracle/blob/main/CHANGELOG.md"
Issues = "https://github.com/sandeep-alluru/worldoracle/issues"
# ── Hatch build ──────────────────────────────────────────────────────────────
[tool.hatch.build.targets.wheel]
packages = ["src/worldoracle"]
# ── Ruff ──────────────────────────────────────────────────────────────────────
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"S", # flake8-bandit
"N", # pep8 naming
"SIM", # flake8-simplify
"RUF", # ruff-native rules
"PT", # flake8-pytest-style
]
ignore = [
"S101", # assert used in tests
]
[tool.ruff.lint.per-file-ignores]
"**/mcp_server.py" = ["E501"]
"tests/**" = ["S101", "S105", "S106", "SIM115"]
"examples/**" = ["S101", "T201"]
# ── Mypy ──────────────────────────────────────────────────────────────────────
[tool.mypy]
python_version = "3.10"
strict = false
ignore_missing_imports = true
warn_return_any = true
warn_unused_ignores = true
warn_unused_configs = true
disallow_any_generics = true
check_untyped_defs = true
disallow_untyped_defs = true
# ── Pytest ────────────────────────────────────────────────────────────────────
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
addopts = "--cov=worldoracle --cov-report=term-missing --cov-report=xml"
# ── Coverage ──────────────────────────────────────────────────────────────────
[tool.coverage.run]
source = ["worldoracle"]
branch = true
omit = ["*/tests/*", "*/examples/*", "*/worldoracle/api.py", "*/worldoracle/cli.py", "*/worldoracle/mcp_server.py"]
[tool.coverage.report]
fail_under = 85
show_missing = true
[dependency-groups]
dev = [
"pytest>=9.1.1",
"pytest-cov>=7.1.0",
]