-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
81 lines (77 loc) · 2.35 KB
/
Copy pathpyproject.toml
File metadata and controls
81 lines (77 loc) · 2.35 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
[project]
name = "workspaces-backend"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"alembic>=1.14.0",
"asyncpg>=0.30.0",
"fastapi>=0.115.6",
"pydantic-settings>=2.6.1",
"python-dotenv>=1.2.2",
"sqlalchemy>=2.0.36",
"uvicorn>=0.32.1",
"python-jose[cryptography]>=3.3.0",
"bcrypt==4.0.1",
"passlib==1.7.4",
"pydantic[email]>=2.5.2",
"pytest>=9.0.3",
"pytest-asyncio>=0.23.5",
"httpx>=0.27.0",
"pytest-cov>=4.1.0",
"black>=26.3.1",
"isort>=5.13.0",
"pre-commit>=4.0.1",
"autoflake>=2.3.1",
"python-multipart>=0.0.31",
"greenlet>=3.1.1",
"geoalchemy2>=0.18.1",
"jsonschema>=4.25.1",
"requests>=2.32.5",
"sentry-sdk[fastapi]>=2.48.0",
"requests-cache>=1.2.1",
"pyjwt",
"sqlmodel>=0.0.8",
"cachetools",
"shapely>=2.1.2",
]
[project.optional-dependencies]
# Integration tests boot a real PostGIS database via testcontainers (needs a
# running Docker daemon). Install with `uv sync --extra integration` or
# `--all-extras`, then run them with `pytest -m integration`.
integration = [
"testcontainers[postgres]>=4.0.0",
]
[tool.pytest.ini_options]
addopts = "-v --cov=api --cov-report=term-missing"
testpaths = ["tests"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
markers = [
"integration: tests that require a live PostGIS database (Docker + testcontainers)",
]
filterwarnings = [
# SQLModel deprecates `session.execute()` in favour of `session.exec()`,
# but many repository queries are raw `text()` SQL where `execute()` is the
# correct call. Silence this one nudge rather than rewrite ~85 call sites;
# every other warning still surfaces. (?s) lets `.*` span the multi-line
# warning body.
"ignore:(?s).*You probably want to use .session.exec:DeprecationWarning",
]
[tool.black]
line-length = 88
target-version = ["py312"]
include = '\.pyi?$'
[tool.isort]
profile = "black"
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 88
# Declare our packages explicitly. Without this, the top-level alembic/ dir
# makes isort misclassify the installed `alembic` package as first-party.
known_first_party = ["api", "tests"]
known_third_party = ["alembic"]