-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
67 lines (59 loc) · 1.35 KB
/
pyproject.toml
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
[project]
name = "typedmongo"
version = "1.10.0"
description = "A production-ready modern Python MongoDB ODM"
authors = [
{name = "abersheeran", email = "me@abersheeran.com"},
]
dependencies = [
"pymongo>=4.6.3",
"motor>=3.4.0",
"marshmallow>=3.21.1",
"typing-extensions>=4.11.0",
]
requires-python = ">=3.10"
readme = "README.md"
license = {text = "Apache2.0"}
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm]
package-type = "library"
[tool.pdm.dev-dependencies]
test = [
"pytest>=8.1.1",
"pytest-cov>=5.0.0",
"pytest-asyncio>=0.23.6",
]
dev = [
"ruff>=0.4.1",
]
[tool.pdm.scripts]
format = "ruff format ."
lint = "ruff check ."
pre_test = "python tests/sync.py"
test = "pytest --cov=typedmongo --asyncio-mode=auto tests/"
sync = "python typedmongo/sync.py"
[tool.ruff]
exclude = ["typedmongo/client.py", "typedmongo/fields.py", "typedmongo/table.py"]
[tool.ruff.lint]
ignore = ["E731"]
extend-select = ["I"]
[tool.coverage.run]
omit = ["*/.venv/*", "*/tests/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"case _:",
"return NotImplemented",
"raise NotImplementedError",
"if False:",
"assert False",
"if typing.TYPE_CHECKING:",
"if TYPE_CHECKING:",
"pass",
"\\.\\.\\.",
]
show_missing = true
skip_covered = true
omit = ["typedmongo/sync.py"]