-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
95 lines (78 loc) · 2.11 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
[tool.poetry]
name = "fastapi-core"
version = "1.0.2"
description = "Reusable core, repositories and utilities for FastAPI in Ecred Platform"
authors = ["yuri hartmann <yurihartmann@icloud.com>"]
classifiers = [
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.10',
]
[tool.poetry.dependencies]
# Python version
python = "^3.10"
# Dependencies required
fastapi = "^0.101.1"
fastapi-pagination = "^0.12.9"
starlette-context = "0.3.*"
loguru = "^0.7.0"
# Render description
jinja2 = "^3.1.2"
# HTTP Clients
httpx = "0.24.*"
# ORM
alembic = { version = "1.11.*", optional = true }
sqlmodel = { version = "0.0.8", optional = true }
# Async Database
asyncpg = { version = "^0.27.0", optional = true }
greenlet = { version = "^2.0.2", optional = true }
psycopg2-binary = { version = "^2.9.6", optional = true }
# Redis
redis = { version = "^5.0.0", optional = true }
[tool.poetry.extras]
database = ["asyncpg", "psycopg2-binary", "greenlet", "alembic", "sqlmodel"]
redis = ["redis"]
# Tests
[tool.poetry.group.dev.dependencies]
coverage = "*"
pytest = "*"
pytest-cov = "*"
faker = "*"
mkdocs = "*"
mkdocs-material = "*"
#fakeredis = "*"
coverage-badge = "*"
pre-commit = "*"
ruff = "^0.0.280"
black = "^23.7.0"
aiosqlite = "^0.19.0"
[tool.ruff]
fix = true
line-length = 120
src = ["fastapi_core", "tests"]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401", "F403"]
[tool.black]
line-length = 120
#[tool.pytest.ini_options]
#addopts = "-p no:warnings --cov=fastapi_core/ --cov-report=term --cov-report=html"
#testpaths = ['tests']
[tool.coverage.run]
omit = ['*/__init__.py', 'exceptions.py', 'app_settings.py']
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"