-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
106 lines (88 loc) · 2.21 KB
/
pyproject.toml
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
[tool.poetry]
name = "sophrosyne"
version = "0.1.0"
description = ""
authors = ["Mads R. Havmand <[email protected]>"]
readme = "README.md"
packages = [
{ include = "sophrosyne", from = "src" },
]
[tool.poetry.dependencies]
python = "^3.12"
fastapi = "^0.110.0"
pydantic = {extras = ["email"], version = "^2.6.4"}
pydantic-settings = {extras = ["yaml"], version = "^2.2.1"}
sqlmodel = "^0.0.16"
click = "^8.1.7"
h11 = "^0.14.0"
grpcio = "^1.62.1"
protobuf = "<5.0dev"
uvicorn = "^0.29.0"
asyncpg = "^0.29.0"
greenlet = "^3.0.3"
alembic = "^1.13.1"
cryptography = "^42.0.5"
requests = "^2.31.0"
structlog = "^24.1.0"
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
pytest = "^8.0.0"
coverage = "^7.2.7"
toml-cli = "^0.6.0"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
pydoc-markdown = "^4.8.2"
ruff = "^0.3.4"
mypy = "^1.9.0"
grpcio-tools = "^1.62.1"
grpc-stubs = "^1.53.0.5"
types-protobuf = "^4.24.0.20240311"
types-requests = "^2.31.0.20240406"
better-exceptions = "^0.3.3"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
pythonpath = [ "src" ]
testpaths = [
"tests",
]
[tool.coverage.run]
branch = true
data_file = "reports/.coverage"
source = [ "src" ]
[tool.coverage.xml]
output = "reports/coverage.xml"
[tool.coverage.report]
show_missing = true
[tool.coverage.html]
directory = "reports/htmlcov"
[[tool.pydoc-markdown.loaders]]
type = "python"
search_path = [ "src" ]
packages = [ "sophrosyne" ]
[tool.pydoc-markdown.renderer]
type = "markdown"
filename = "docs/api.md"
[tool.ruff]
extend-exclude = ["*_pb2.py", "*_pb2_grpc.py", "*_pb2.pyi", "*/migrations/versions/*.py"]
[tool.ruff.lint]
# Enable all `pydocstyle` rules, limiting to those that adhere to the
# Google convention via `convention = "google"`, below.
select = ["D", "I", "F"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.extend-per-file-ignores]
# Do not lint test files for pydocstyle
"tests/*" = ["D"]
[tool.mypy]
packages = [
"sophrosyne",
"tests"
]
# https://mypy.readthedocs.io/en/stable/running_mypy.html#mapping-file-paths-to-modules
mypy_path = "src,tests"
namespace_packages = true
explicit_package_bases = true