-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
63 lines (56 loc) · 1.64 KB
/
pyproject.toml
File metadata and controls
63 lines (56 loc) · 1.64 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
[build-system]
# Use hatchling as the build backend (standard and modern)
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "soltania-python-persistence-api"
version = "0.1.0"
description = "A JPA-inspired abstraction layer for Python (SQL/NoSQL)."
readme = "README.md"
requires-python = ">=3.11"
authors = [
{ name = "Slim Soltani", email = "ssoltanid@example.com" }
]
# Main dependencies
dependencies = [
"gremlinpython>=3.8.0",
"pydantic>=2.5",
"pydantic-settings>=2.12.0",
"sqlalchemy>=2.0",
]
# Configuration for package discovery (replaces packages = [{include...}])
# Hatchling detects 'src' layout automatically by default
[tool.hatch.build.targets.wheel]
packages = ["src/soltania_persistence"]
# --- DEV DEPENDENCIES (Standardized for uv) ---
[dependency-groups]
dev = [
"pytest>=8.0",
"pytest-cov>=4.1",
"ruff>=0.1.9",
"mypy>=1.8",
"pre-commit>=3.6",
]
# --- RUFF CONFIGURATION (Remains the same) ---
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "B", "UP"] # pycodestyle, pyflakes, isort, bugbear, pyupgrade
ignore = ["E501"]
# --- MYPY CONFIGURATION (Remains the same) ---
[tool.mypy]
python_version = "3.11"
strict = true
ignore_missing_imports = true
# Forces typing on all functions (Architecture requirement)
disallow_untyped_defs = true
# --- PYTEST CONFIGURATION (Remains the same) ---
[tool.pytest.ini_options]
pythonpath = ["src"]
addopts = "--cov=soltania_persistence --cov-report=term-missing"
testpaths = ["tests"]
markers = [
"integration: marks tests as requiring a real database connection",
"unit: marks fast unit tests"
]