forked from gothinkster/realworld-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
94 lines (70 loc) · 1.9 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
[tool.poetry]
name = "realworld-aiohttp"
version = "0.1.0"
description = """\
Python / AIOHTTP codebase containing real world examples (CRUD, auth, advanced patterns, etc)\
that adheres to the RealWorld spec and API.\
"""
authors = ["Stanislav Kiriukhin <[email protected]>"]
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.11 <3.12"
aiohttp = "^3.9.1"
aiohttp-apispec = "^2.2.3"
argon2-cffi = "^23.1.0"
asyncpg = "^0.29.0"
dependency-injector = "^4.41.0"
dynaconf = "^3.2.4"
marshmallow = "^3.21.0"
pyjwt = "^2.8.0"
python-slugify = "^8.0.4"
sqlalchemy = "^2.0.25"
structlog = "^24.1.0"
yarl = "^1.9.4"
[tool.poetry.group.migrations.dependencies]
alembic = "^1.13.1"
dynaconf = "^3.2.4"
psycopg2-binary = "^2.9.9"
[tool.poetry.group.dev.dependencies]
mypy = "^1.8.0"
pytest = "^7.4.4"
pytest-aiohttp = "^1.0.5"
pytest-asyncio = "^0.23.3"
pytest-cov = "^4.1.0"
ruff = "^0.1.13"
[tool.mypy]
python_version = "3.11"
files = ["conduit/", "migrations/", "tests/"]
strict = true
warn_unreachable = true
show_error_context = true
pretty = true
[[tool.mypy.overrides]]
module = ["dynaconf.*", "aiohttp_apispec.*", "pytest_aiohttp.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["conduit.api.*"]
allow_untyped_decorators = true
warn_return_any = false
[tool.ruff]
include = ["conduit/**/*.py", "migrations/**/*.py", "tests/**/*.py"]
line-length = 120
[tool.ruff.lint]
select = ["B", "D", "E", "F", "I", "N", "UP", "W"]
ignore = ["D100", "D101", "D102", "D103", "D104", "D105", "D106", "D107", "D203", "D213"]
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pytest.ini_options]
addopts = [
"--disable-warnings",
"--cov=conduit",
"--cov-report=term-missing",
]
asyncio_mode = "auto"
console_output_style = "count"
testpaths = ["tests"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"