-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
86 lines (64 loc) · 1.59 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
[tool.poetry]
name = "sample-fastapi"
version = "0.2.0"
description = ""
authors = ["Narayan Bandodker <[email protected]>"]
readme = "README.md"
[tool.poetry.scripts]
# CLI script
sample-fastapi = "sample_fastapi.cli:main"
[tool.poetry.dependencies]
# Main dependencies
python = "^3.11"
pydantic = "^2.7.1"
pydantic-settings = "^2.2.1"
platformdirs = "^4.2.1"
fastapi = "^0.111.0"
python-jose = {extras = ["cryptography"], version = "^3.3.0"}
tqdm = "^4.66.4"
sqlalchemy = "^2.0.30"
aiosqlite = "^0.20.0"
aiodecorators = "^0.2.1"
pyyaml = "^6.0.2"
[tool.poetry.group.test]
# Testing dependencies
optional = true
[tool.poetry.group.test.dependencies]
# Pytest for VSCode test-suite compatibility
pytest = "^8.1.1"
[tool.poetry.group.dev]
# Development dependencies
optional = true
[tool.poetry.group.dev.dependencies]
isort = "^5.13.2"
black = "^23.12.0"
pre-commit = "^3.7.0"
watchfiles = "^0.21.0"
uvicorn = "^0.29.0"
[tool.black]
# Tool configurations
## Black (formatter)
line-length = 120
target-version = ['py311']
include = '\.pyi?$'
[tool.flake8]
## Flake8 (PEP-8 linter)
ignore = "E203, E266, E501, W503, F403, F401"
exclude = ".git, __pycache__, venv, .vscode, .mypy_cache, .pytest_cache, build, dist"
max-line-length = 120
max-complexity = 18
select = "B,C,E,F,W,T4,B9"
accept-encodings = "utf-8"
inline-quotes = "single"
max-linenumber = 500
multiline-quotes = "double"
[tool.pyright]
## Pyright (Static type checker)
venvPath = "."
venv = "venv"
reportShadowedImports=false
[tool.isort]
profile = "black"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"