-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
138 lines (122 loc) · 3.29 KB
/
pyproject.toml
File metadata and controls
138 lines (122 loc) · 3.29 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
129
130
131
132
133
134
135
136
137
138
[build-system]
requires = ["setuptools>=68"]
build-backend = "setuptools.build_meta"
[project]
name = "moralstack"
version = "0.5.0"
description = "Policy-aware reasoning orchestration layer for LLM systems"
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.11"
keywords = ["llm", "governance", "ai-safety", "openai", "deliberation", "auditability"]
classifiers = [
"Development Status :: 4 - Beta",
"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",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
]
authors = [
{ name = "Francesco di Donato" }
]
dependencies = [
"openai>=2.24.0",
"pydantic>=2",
"python-dotenv>=1.0.0",
"ruamel.yaml>=0.18",
"langdetect>=1.0.9",
]
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"ruff",
"black",
"mypy",
"pre-commit",
]
ui = [
"fastapi>=0.110",
"uvicorn>=0.27",
"jinja2>=3.1",
"python-multipart>=0.0.9",
"httpx>=0.27",
]
server = [
"fastapi>=0.110",
"uvicorn>=0.27",
"httpx>=0.27",
]
[project.scripts]
moralstack = "moralstack.cli.run:main"
moralstack-ui = "moralstack.ui.app:main"
moralstack-server = "moralstack.server.proxy:main"
moralstack-validate-overlay = "moralstack.cli.validate_overlay:main"
[project.urls]
Homepage = "https://github.com/fdidonato/moralstack"
Repository = "https://github.com/fdidonato/moralstack"
Issues = "https://github.com/fdidonato/moralstack/issues"
Documentation = "https://github.com/fdidonato/moralstack/blob/main/README.md"
Changelog = "https://github.com/fdidonato/moralstack/blob/main/CHANGELOG.md"
[tool.setuptools.packages.find]
where = ["."]
include = ["moralstack*"]
[tool.setuptools.package-data]
"moralstack.constitution" = ["data/**/*.yaml"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra"
# MoralStack runtime configuration example
# See docs/modules/orchestrator.md for details.
# [tool.moralstack.config]
# borderline_refuse_upper = 0.95
[tool.ruff]
line-length = 125
target-version = "py311"
exclude = [
".bzr", ".direnv", ".eggs", ".git", ".hg", ".ipynb_checkpoints",
".mypy_cache", ".nox", ".pytest_cache", ".ruff_cache", ".tox",
".venv", "venv", "env", ".vscode", "__pypackages__", "_build",
"buck-out", "build", "dist", "node_modules", "site-packages",
]
[tool.ruff.lint]
select = ["E", "F", "I"]
[tool.black]
line-length = 125
target-version = ["py311"]
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.mypy]
python_version = "3.11"
warn_return_any = false
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = ["ruamel.yaml.*", "langdetect.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "moralstack.ui.app"
ignore_missing_imports = true
disable_error_code = ["untyped-decorator"]
[[tool.mypy.overrides]]
module = "moralstack.server.*"
ignore_missing_imports = true
disable_error_code = ["untyped-decorator"]
[[tool.mypy.overrides]]
module = "moralstack.orchestration.*"
strict = true