-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
136 lines (121 loc) · 3.48 KB
/
Copy pathpyproject.toml
File metadata and controls
136 lines (121 loc) · 3.48 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
[project]
name = "ontokit"
dynamic = ["version"]
description = "Collaborative OWL ontology curation API"
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.11"
authors = [
{ name = "OntoKit Contributors" }
]
keywords = ["ontology", "owl", "rdf", "semantic-web", "knowledge-graph"]
classifiers = [
"Development Status :: 3 - Alpha",
"Framework :: FastAPI",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"fastapi>=0.138.1",
"uvicorn[standard]>=0.49.0",
"pydantic>=2.13.4,<2.14",
"pydantic-settings>=2.14.2,<2.15",
"rdflib>=7.1.0",
"owlready2>=0.51",
"sqlalchemy>=2.0.51",
"asyncpg>=0.30.0",
"alembic>=1.18.5",
"redis>=5.2.0",
"arq>=0.28.0",
"httpx>=0.28.0",
"passlib[bcrypt]>=1.7.4",
"python-multipart>=0.0.32",
"gitpython>=3.1.50",
"pygit2>=1.19.3",
"pyjwt>=2.13.0",
"pygithub>=2.9.1",
"minio>=7.2.0",
"websockets>=14.0",
"slowapi>=0.1.10",
"sentence-transformers>=5.6.0",
"pgvector>=0.3.0",
"numpy>=2.4.6",
]
[dependency-groups]
dev = [
"pytest>=9.1.1",
"pytest-asyncio>=1.4.0",
"pytest-cov>=7.1.0",
"httpx>=0.28.0",
"ruff>=0.15.20",
"mypy>=2.1.0",
"pre-commit>=4.6.0",
"pyright>=1.1.411",
]
[project.urls]
Homepage = "https://github.com/ontokit/ontokit-api"
Documentation = "https://ontokit.github.io/docs"
Repository = "https://github.com/ontokit/ontokit-api"
[project.scripts]
ontokit = "ontokit.runner:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "ontokit/version.py"
pattern = 'VERSION = "(?P<version>[^"]+?)(-dev|-rc)?"'
[tool.hatch.build.targets.wheel]
packages = ["ontokit"]
[tool.ruff]
target-version = "py311"
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
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
]
ignore = ["E501"]
[tool.ruff.lint.isort]
known-first-party = ["ontokit"]
[tool.pyright]
venvPath = "."
venv = ".venv"
pythonVersion = "3.11"
# Pyright is an advisory (non-gating) checker; mypy (strict, with the pydantic
# plugin) remains the authoritative gate. Keep pyright at "standard" rather than
# "strict" — strict-on-strict is redundant noise. The opinionated rules
# (reportImplicitOverride, reportMissingTypeStubs, reportPrivateUsage) stay at
# their standard-mode defaults (off). See issue #134.
typeCheckingMode = "standard"
include = ["ontokit", "tests"]
# Test fixtures intentionally carry unused symbols (fixture-symmetry params like
# mock_db, placeholder _args/_kwargs), so don't flag unused variables in tests.
[[tool.pyright.executionEnvironments]]
root = "tests"
reportUnusedVariable = false
[tool.mypy]
python_version = "3.11"
strict = true
warn_return_any = true
warn_unused_ignores = true
plugins = ["pydantic.mypy"]
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
addopts = "-v --cov=ontokit --cov-report=term-missing"