core/pyproject.toml

103 lines
2.3 KiB
TOML
Raw Normal View History

2023-10-23 14:47:11 +00:00
[tool.poetry]
name = "discoursio-core"
2023-12-17 05:08:35 +00:00
version = "0.2.18"
2023-10-23 14:47:11 +00:00
description = "core module for discours.io"
authors = ["discoursio devteam"]
license = "MIT"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.12"
SQLAlchemy = "^2.0.22"
2023-11-22 18:06:45 +00:00
psycopg2-binary = "^2.9.9"
2023-10-23 14:47:11 +00:00
redis = {extras = ["hiredis"], version = "^5.0.1"}
2023-11-22 16:38:39 +00:00
uvicorn = "^0.24"
2023-11-29 20:22:39 +00:00
sentry-sdk = "^1.38.0"
2023-11-29 07:23:41 +00:00
starlette = "^0.32.0.post1"
gql = "^3.4.1"
ariadne = "^0.21"
aiohttp = "^3.9.1"
2023-12-12 07:30:32 +00:00
requests = "^2.31.0"
2023-10-23 14:47:11 +00:00
2023-11-28 07:53:48 +00:00
[tool.poetry.group.dev.dependencies]
setuptools = "^69.0.2"
2023-10-23 14:47:11 +00:00
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.dev-dependencies]
pytest = "^7.4.2"
black = { version = "^23.9.1", python = ">=3.12" }
ruff = { version = "^0.1.0", python = ">=3.12" }
[tool.black]
line-length = 120
target-version = ['py312']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
| foo.py # also separately exclude a file named foo.py in
# the root of the project
)
'''
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 120
[tool.ruff]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
select = ["E4", "E7", "E9", "F"]
ignore = []
line-length = 120
2023-11-22 16:38:39 +00:00
target-version = "py312"
2023-11-27 08:12:42 +00:00
[tool.pyright]
venvPath = "."
venv = ".venv"
include = ["."]
2023-11-29 08:00:00 +00:00
useLibraryCodeForTypes = true
disableLanguageServices = false
disableOrganizeImports = false
reportMissingImports = false
reportMissingModuleSource = "warning"
reportImportCycles = "warning"
maxMemoryForLargeFile = 4096
pythonVersion = "3.12"
autoImportCompletions = true
useVirtualEnv = true
typeCheckingMode = "basic"
disableJediCompletion = false
disableCompletion = false
disableSnippetCompletion = false
disableGoToDefinition = false
disableRenaming = false
disableSignatureHelp = false
diagnostics = true
logLevel = "Information"
pluginSearchPaths = []
typings = {}
mergeTypeStubPackages = false