-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (77 loc) · 2.39 KB
/
pyproject.toml
File metadata and controls
87 lines (77 loc) · 2.39 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
[project]
name = "asyncpg-recorder"
version = "0.9.0"
authors = [{name="HeiGIT ohsome team", email="ohsome@heigit.org"}]
description = "Automatically mock your Postgres interactions to simplify and speed up testing"
readme = "README.md"
requires-python = ">=3.11,<3.15"
classifiers = [
"Framework :: Pytest",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Testing",
]
license = "LGPL-3.0-only"
license-files = ["COPYING*"]
dependencies = [
"asyncpg>=0.31.0",
"pytest>=9.0.2",
"testcontainers[postgres]>=4.9.1",
]
[project.urls]
Homepage = "https://ohsome.org/"
Documentation = "https://github.com/GIScience/asyncpg-recorder/blob/main/README.md"
Repository = "https://github.com/GIScience/asyncpg-recorder"
Issues = "https://github.com/GIScience/asyncpg-recorder/issues"
Changelog = "https://github.com/GIScience/asyncpg-recorder/blob/main/CHANGELOG.md"
[project.entry-points.pytest11]
asyncpg_recorder = "asyncpg_recorder.plugin"
[build-system]
requires = ["uv_build>=0.10.9,<0.12.0"]
build-backend = "uv_build"
[tool.uv.build-backend]
module-root = ""
[tool.uv.sources]
pytest-nodeid-to-filepath = { git = "https://github.com/GIScience/pytest-nodeid-to-filepath" }
[dependency-groups]
dev = [
"prek>=0.3.0",
"pytest-asyncio>=0.25.3",
"pytest-cov>=7.0.0",
"pytest-nodeid-to-filepath",
"pytest-randomly>=4.0.1",
"ruff==0.14.14",
"testcontainers[postgres]>=4.9.1",
"vcrpy>=7.0.0",
]
[tool.pytest.ini_options]
asyncio_default_fixture_loop_scope = "function"
addopts = "-s"
[tool.ruff.lint]
select = [
"A", # flake8-builtins
"E", # pycodestyle Error
"F", # Pyflakes
"I", # isort
"N", # pep8-nameing
"Q", # flake8-quotes
"W", # pycodestyle Warning
"C90", # mccabe
"TRY", # tryceratops
"RUF", # ruff-specific rules
"FURB", # refurb
"PERF", # perflint
"S", # bandit
"B", # bugbear
"SIM", # simplify
"LOG", # flake8-logging
]
[tool.ruff.lint.extend-per-file-ignores]
"tests/*" = ["S101"] # S101 usage of asserts;
[tool.asyncpg-recorder]
"cassettes-dir"="tests/cassettes"