-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
110 lines (99 loc) · 2.59 KB
/
Copy pathpyproject.toml
File metadata and controls
110 lines (99 loc) · 2.59 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
[project]
name = "strawberry-orm"
version = "0.21.1"
description = "Unified, backend-agnostic ORM abstraction for Strawberry GraphQL"
readme = "README.md"
license = "MIT"
authors = [
{ name = "James Davidson", email = "jamie.t.davidson@gmail.com" },
{ name = "Patrick Arminio", email = "patrick.arminio@gmail.com" }
]
requires-python = ">=3.12"
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"strawberry-graphql>=0.311.0",
]
[project.urls]
Homepage = "https://github.com/strawberry-graphql/strawberry-orm"
Repository = "https://github.com/strawberry-graphql/strawberry-orm"
Issues = "https://github.com/strawberry-graphql/strawberry-orm/issues"
[project.optional-dependencies]
django = ["django>=4.2"]
sqlalchemy = ["sqlalchemy>=2.0"]
tortoise = ["tortoise-orm>=0.25.0"]
dev = [
"greenlet>=3.3.2",
"pytest>=8.0",
"pytest-asyncio>=0.24",
"pytest-django>=4.8",
"typer>=0.9",
"uvicorn>=0.30",
]
[build-system]
requires = ["uv_build>=0.9.8,<0.10.0"]
build-backend = "uv_build"
[dependency-groups]
dev = [
"greenlet>=3.3.2",
"pytest>=8.0",
"pytest-asyncio>=0.24",
"pytest-cov>=7.0.0",
"pytest-django>=4.8",
"starlette>=0.52.1",
"typer>=0.24.1",
"uvicorn>=0.41.0",
]
[tool.ruff]
line-length = 88
target-version = "py312"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
]
ignore = [
"E501", # line too long (handled by formatter)
"UP046", # Generic[M] needed for runtime introspection via get_original_bases
]
[tool.ruff.lint.isort]
known-first-party = ["strawberry_orm"]
[tool.ruff.lint.per-file-ignores]
"cli.py" = ["B008"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
addopts = [
"--cov=strawberry_orm",
"--cov-report=term-missing",
"--cov-report=xml",
"--cov-fail-under=100",
]
markers = [
"asyncio: mark test as async",
"django_db: mark test as requiring django database access",
]
[tool.coverage.run]
source = ["strawberry_orm"]
omit = [
"*/backends/protocol.py",
]
[tool.coverage.report]
show_missing = true
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
]