-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
83 lines (75 loc) · 1.47 KB
/
pyproject.toml
File metadata and controls
83 lines (75 loc) · 1.47 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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "widget-crud-api"
version = "1.0.0"
description = "A modern Widget CRUD REST API built with FastAPI"
authors = ["Widget Team <team@widgets.dev>"]
readme = "README.md"
packages = [{include = "app", from = "src"}]
[tool.poetry.dependencies]
python = "^3.12"
fastapi = "^0.104.1"
uvicorn = {extras = ["standard"], version = "^0.24.0"}
sqlalchemy = "^2.0.23"
alembic = "^1.13.1"
aiosqlite = "^0.19.0"
greenlet = "^3.0.2"
pydantic = "^2.5.0"
pydantic-settings = "^2.1.0"
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.3"
pytest-asyncio = "^0.21.1"
coverage = "^7.3.2"
httpx = "^0.25.2"
flake8 = "^6.1.0"
black = "^23.12.1"
bandit = "^1.7.5"
mypy = "^1.7.1"
pre-commit = "^3.6.0"
isort = "^6.0.1"
pytest-cov = "^6.1.1"
[tool.black]
line-length = 79
target-version = ['py312']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.isort]
profile = "black"
line_length = 79
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
[tool.flake8]
max-line-length = 79
max-complexity = 10
ignore = ["E203", "W503", "E501"]
exclude = [
".git",
"__pycache__",
".venv",
"aweberenv",
"build",
"dist",
"*.egg-info",
".pytest_cache",
".mypy_cache",
"migrations"
]