forked from taogeYT/appboot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
75 lines (62 loc) · 1.63 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
[tool.poetry]
name = "appboot"
version = "0.2.0"
description = "Use FastAPI like Django"
authors = ["liyatao <[email protected]>"]
readme = "README.md"
repository = "https://github.com/taogeYT/appboot"
[tool.poetry.dependencies]
python = "^3.9"
fastapi = ">=0.95.0"
pydantic = ">=1.10.6"
python-dotenv = ">=0.10.4"
jinja2 = ">=2.11.2"
typer = ">=0.8.0"
typing_extensions = ">=4.2.0"
uvicorn = { version = ">=0.21.0", extras = ["standard"] }
sqlalchemy = { version = "^2.0.0", extras = ["asyncio"] }
pydantic-settings = { version = "^2.0.0", optional = true }
[tool.poetry.extras]
pydantic-settings = ["pydantic-settings"]
[tool.poetry.group.dev.dependencies]
ruff = "0.2.0"
mypy = "^1.10.1"
pytest = "^8.2.2"
pytest-asyncio = "^0.23.7"
pytest-mock = "^3.14.0"
ipython = "8.0"
aiosqlite = "^0.20.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
appboot = 'appboot.commands:app'
[tool.ruff]
line-length = 88
target-version = 'py39'
exclude = ["build", "dist"]
[tool.ruff.lint]
select = ["E", "F", "W", "I"]
ignore = ["E501"]
[tool.ruff.lint.isort]
known-third-party = ["fastapi", "pydantic", "sqlalchemy"]
[tool.ruff.format]
quote-style = "single"
[tool.mypy]
python_version = "3.9"
plugins = ["pydantic.mypy"]
exclude = 'examples'
ignore_missing_imports = true
allow_redefinition = true
no_implicit_optional = true
local_partial_types = true
strict_equality = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
warn_unreachable = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-svv -p no:warnings"
testpaths = ["tests"]
asyncio_mode = "auto"