-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpyproject.toml
More file actions
124 lines (114 loc) · 3.41 KB
/
Copy pathpyproject.toml
File metadata and controls
124 lines (114 loc) · 3.41 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
# Copyright (c) 2026 Guy's and St Thomas' NHS Foundation Trust & King's College London
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
[project]
name = "flip-api"
version = "0.5.0"
description = ""
readme = "README.md"
authors = [
{ name = "R. Garcia-Dias", email = "rafaelagd@gmail.com" },
{ name = "A. Triay Bagur", email = "alexandre.triay_bagur@kcl.ac.uk" },
]
requires-python = ">=3.12"
dependencies = [
"alembic>=1.13",
"fastapi[standard]>=0.115.11",
"idna>=3.15",
"uvicorn>=0.27.0",
"sqlalchemy>=2.0.27",
"boto3>=1.34.49",
"pydantic>=2.6.1",
"python-multipart>=0.0.26",
"asyncpg>=0.30.0",
"sqlmodel>=0.0.24",
"boto3-stubs>=1.37.22",
"pyjwt[crypto]>=2.12.1",
"cryptography>=46.0.7",
"python-dotenv>=1.2.2",
"psycopg2-binary>=2.9.10",
"sqlglot>=26.33.0",
"pydantic-settings>=2.9.1",
"apscheduler>=3.11.0",
"slowapi>=0.1.9",
"starlette>=0.49.1",
"tornado>=6.5.2",
"urllib3>=2.7.0",
"picklescan>=1.0.5",
"bandit>=1.7.10",
]
[project.scripts]
flip-api = "flip_api:main"
[build-system]
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"
[dependency-groups]
dev = [
"coverage>=7.7.1",
"factory-boy>=3.3.3",
"ipython>=9.0.2",
"mypy>=1.15.0",
"pytest-cov>=6.0.0",
"pytest-factoryboy>=2.7.0",
"pytest>=9.0.3",
"requests>=2.33.0",
"ruff>=0.11.0",
"types-requests>=2.32.0.20250328",
"pytest-asyncio>=0.26.0",
"ipykernel>=6.29.5",
"thefuzz>=0.22.1",
"ollama>=0.4.8",
"autopep8>=2.3.2",
"libcst>=1.7.0",
"testcontainers[postgres]>=4.9",
"moto[cognitoidp,s3,ses]>=5.0",
]
[tool.coverage.report]
exclude_lines = [
"if __name__ == .__main__.:",
"@(abc\\.)?abstractmethod",
"raise NotImplementedError",
"pragma: no cover",
"pass",
"continue",
"except Exception as e:",
"except Exception:",
"try:",
"class .*\\(.*Enum.*\\):",
"class .*\\(.*TypedDict.*\\):",
]
omit = ["*.venv/*", "*/tests/*", "*/__init__.py", "*/translation/*", "*/migrations/*"]
[tool.pytest.ini_options]
python_files = ["test_*.py", "*_test.py"]
addopts = []
filterwarnings = ["ignore::DeprecationWarning", "ignore::FutureWarning"]
[tool.ruff]
line-length = 120
target-version = "py312"
[tool.ruff.lint]
preview = true
select = ['I', 'F', 'E', 'W', 'PT', 'UP006', 'UP007', 'UP035', 'UP042', 'UP045']
exclude = [
"src/flip_api/translation/*",
# Autogenerated Alembic revisions: long native-enum column definitions blow the
# 120-char line limit on every migration. The hand-written env.py stays linted.
"src/flip_api/db/migrations/versions/*",
]
[tool.mypy]
ignore_missing_imports = true
exclude = [
"src/flip_api/translation/*",
# Autogenerated Alembic revisions — generated code shouldn't gate type-checking.
"src/flip_api/db/migrations/versions/.*",
]
[tool.uv]
# 72h supply-chain cooldown; see CONTRIBUTING.md ("Dependency cooldown").
exclude-newer = "3 days"