-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
111 lines (100 loc) · 2.38 KB
/
pyproject.toml
File metadata and controls
111 lines (100 loc) · 2.38 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "AirModel"
version = "0.4.2"
description = "Async ORM for Pydantic models and PostgreSQL, with a Django-inspired API"
readme = "README.md"
authors = [
{name = "Audrey M. Roy Greenfeld", email = "audrey@feldroy.com"}
]
maintainers = [
{name = "Audrey M. Roy Greenfeld", email = "audrey@feldroy.com"}
]
classifiers = [
"Development Status :: 3 - Alpha",
"Framework :: AsyncIO",
"Framework :: Pydantic",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Typing :: Typed",
]
license = {text = "MIT"}
dependencies = [
"pydantic>=2.0",
"asyncpg>=0.30.0",
"AirField>=0.4.0",
"typer",
"rich",
]
requires-python = ">= 3.13"
[dependency-groups]
dev = [
{ include-group = "lint" },
{ include-group = "test" },
{ include-group = "typecheck" },
]
lint = [
"ruff",
]
test = [
"coverage",
"pytest",
"pytest-asyncio",
]
typecheck = [
"ty",
]
docs = [
"zensical",
"mkdocstrings-python",
]
[project.urls]
bugs = "https://github.com/feldroy/AirModel/issues"
changelog = "https://github.com/feldroy/AirModel/releases"
documentation = "https://feldroy.github.io/AirModel/"
homepage = "https://github.com/feldroy/AirModel"
[project.scripts]
airmodel = "airmodel.cli:app"
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
[tool.ty]
# All rules are enabled as "error" by default; no need to specify unless overriding.
# Example override: relax a rule for the entire project (uncomment if needed).
# rules.TY015 = "warn" # For invalid-argument-type, warn instead of error.
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
]
[tool.coverage.run]
branch = true
parallel = true
source = ["src/", "tests/"]
[tool.coverage.report]
show_missing = true
skip_covered = true
fail_under = 50
exclude_also = [
"if TYPE_CHECKING:",
"if typing.TYPE_CHECKING:",
"@overload",
"@typing.overload",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
"raise NotImplementedError",
"\\.\\.\\.",
]
[tool.uv]
package = true
default-groups = ["dev"]