-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
128 lines (110 loc) · 2.7 KB
/
pyproject.toml
File metadata and controls
128 lines (110 loc) · 2.7 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
[project]
name = "iron-sql"
version = "0.5.3"
description = "iron_sql generates typed async PostgreSQL clients and runtime helpers from schemas and SQL queries"
readme = "README.md"
authors = [{ name = "Ilia Ablamonov", email = "ilia@flamefork.ru" }]
license = "MIT"
license-files = ["LICENSE"]
keywords = ["postgresql", "sql", "sqlc", "psycopg", "codegen", "async"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
]
requires-python = ">=3.13"
dependencies = [
"psycopg>=3.3.2",
"psycopg-pool>=3.3.0",
"pydantic>=2.12.4",
]
[project.optional-dependencies]
codegen = [
"inflection>=0.5.1",
"sqlc>=1.30.0.post19",
]
[project.urls]
Homepage = "https://github.com/Flamefork/iron_sql"
Repository = "https://github.com/Flamefork/iron_sql.git"
Issues = "https://github.com/Flamefork/iron_sql/issues"
[build-system]
requires = ["uv_build>=0.9.4,<0.10.0"]
build-backend = "uv_build"
[dependency-groups]
dev = [
"iron-sql[codegen]",
"basedpyright>=1.31.7",
"psycopg[binary]>=3.3.2",
"pytest>=8.4.2",
"pytest-asyncio>=1.2.0",
"pytest-cov>=7.0.0",
"pytest-randomly>=4.0.1",
"ruff>=0.14.1",
"testcontainers>=4",
]
[tool.pyright]
typeCheckingMode = "strict"
deprecateTypingAliases = true
reportImportCycles = true
reportUnnecessaryTypeIgnoreComment = true
reportUnreachable = true
reportIgnoreCommentWithoutRule = true
reportImplicitRelativeImport = true
[tool.ruff]
target-version = "py313"
[tool.ruff.format]
preview = true
[tool.ruff.lint]
preview = true
select = ["ALL"]
ignore = [
"ANN",
"COM812",
"CPY",
"D",
"FIX",
"G004",
"ISC001",
"PLC1901",
"PLR0911",
"PLR0915",
"PLR6301",
"RUF001",
"RUF002",
"RUF003",
"TC006",
"TD",
]
[tool.ruff.lint.per-file-ignores]
"test_*.py" = ["A002", "PLR2004", "S", "FBT"]
"example/*.py" = ["E501", "T201", "PGH004"]
[tool.ruff.lint.isort]
force-single-line = true
[tool.ruff.lint.pylint]
max-args = 10
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.pytest.ini_options]
strict = true
testpaths = ["tests"]
filterwarnings = [
"error",
"ignore:.*wait_container_is_ready:DeprecationWarning",
]
addopts = [
"--import-mode=importlib",
"--no-cov-on-fail",
"--cov-report=term-missing:skip-covered",
]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.coverage.run]
branch = true
omit = ["tests/*.py", "testdb.py"]
data_file = ".coverage/db.sqlite"
[tool.coverage.html]
directory = ".coverage/htmlcov"
[tool.coverage.report]
exclude_also = ["@overload"]