-
Notifications
You must be signed in to change notification settings - Fork 14
/
pyproject.toml
104 lines (91 loc) · 2.31 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
[tool.poetry]
name = "mountaineer"
version = "0.1.0"
description = ""
authors = ["Pierce Freeman <pierce@freeman.vc>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
pydantic = "^2.5.3"
fastapi = "^0.114.1"
inflection = "^0.5.1"
click = "^8.1.7"
uvicorn = { extras = ["standard"], version = "^0.27.0.post1" }
packaging = "^23.2"
pydantic-settings = "^2.1.0"
sqlmodel = "^0.0.20"
asyncpg = "^0.29.0"
sqlalchemy = { extras = ["asyncio"], version = "^2.0.26" }
# TODO: Move to optional dependencies, since release configurations
# will not need these.
watchdog = "^3.0.0"
rich = "^13.7.1"
[tool.poetry.group.dev.dependencies]
mypy = "^1.8.0"
pytest = "^7.4.4"
ruff = "^0.1.14"
types-setuptools = "^69.0.0.20240125"
maturin = "^1.4.0"
types-tqdm = "^4.66.0.20240106"
pytest-asyncio = "^0.23.4"
pyinstrument = "^4.6.2"
httpx = "^0.27.0"
types-psycopg2 = "^2.9.21.20240218"
pyright = "^1.1.352"
tqdm = "^4.66.2"
toml = "^0.10.2"
types-toml = "^0.10.8.20240310"
[build-system]
requires = ["maturin>=1.3.0"]
build-backend = "maturin"
[tool.mypy]
warn_return_any = true
warn_unused_configs = true
check_untyped_defs = true
plugins = ["pydantic.mypy"]
[[tool.mypy.overrides]]
module = "ci_webapp.*"
ignore_missing_imports = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
[tool.pyright]
exclude = ["**/ci_webapp"]
[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
# Disable print statements
select = ["E4", "E7", "E9", "F", "I001", "T201"]
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.pytest.ini_options]
markers = ["integration_tests: run longer-running integration tests"]
# Default pytest runs shouldn't execute the integration tests
addopts = "-m 'not integration_tests'"
[project]
# Maintaned just for local installation / testing purposes with venvironments
# since these can't pick up poetry's data definitions
name = "mountaineer"
dependencies = [
"pydantic",
"fastapi",
"inflection",
"click",
"uvicorn[standard]",
"packaging",
"watchdog",
"pydantic-settings",
"sqlmodel",
"asyncpg",
"sqlalchemy[asyncio]",
"rich",
]
# Excluded in sdist packaging
exclude = [
"fixtures",
"ci_webapp",
"create_mountaineer_app",
"media",
"docs_website",
"benchmarking",
]