-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
88 lines (79 loc) · 2.35 KB
/
Copy pathpyproject.toml
File metadata and controls
88 lines (79 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
82
83
84
85
86
87
88
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "hymical-forms"
dynamic = ["version"]
description = "Reliable form ingestion and webhook delivery for developers."
readme = "README.md"
license = "Apache-2.0"
license-files = ["LICENSE"]
requires-python = ">=3.11"
authors = [{ name = "Hymical" }]
keywords = ["forms", "webhooks", "ingestion", "fastapi"]
classifiers = [
"Development Status :: 3 - Alpha",
"Framework :: FastAPI",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
]
dependencies = [
"alembic>=1.13", # schema migrations, and the startup check that they were applied
"fastapi>=0.115",
"httpx2>=2.0", # outbound webhook client, and the transport starlette's TestClient uses
"psycopg[binary]>=3.1", # PostgreSQL driver for the intended production database
"pydantic>=2.7",
"pydantic-settings>=2.3",
"python-multipart>=0.0.9",
"sqlalchemy>=2.0",
"uvicorn>=0.30",
]
[project.optional-dependencies]
dev = [
"mypy>=1.11",
"pytest>=8.3",
"ruff>=0.6",
]
# Documentation tooling only. Deliberately a group of its own rather than part of
# `dev`, so that nothing needed to build the site can drift into what is needed to
# run or test the service.
docs = [
"mkdocs>=1.6",
"mkdocs-material>=9.5",
]
[project.urls]
Homepage = "https://github.com/hymical/forms"
Source = "https://github.com/hymical/forms"
Issues = "https://github.com/hymical/forms/issues"
[tool.hatch.version]
path = "src/hymical_forms/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["src/hymical_forms"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q --strict-markers --strict-config"
markers = [
"postgres: needs a live PostgreSQL database, named by HYMICAL_TEST_POSTGRES_URL",
]
[tool.ruff]
target-version = "py311"
line-length = 100
src = ["src", "tests"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # import sorting
"UP", # pyupgrade
"B", # bugbear
"SIM", # simplify
"RUF", # ruff-specific
]
[tool.mypy]
python_version = "3.11"
files = ["src", "tests"]
strict = true
# Teaches mypy that a BaseSettings subclass can be constructed with no arguments
# because its values come from the environment.
plugins = ["pydantic.mypy"]