notifier/pyproject.toml

117 lines
2.6 KiB
TOML
Raw Normal View History

2023-11-23 22:58:55 +00:00
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "discoursio-notifier"
2024-01-10 13:34:11 +00:00
version = "0.2.19"
2023-11-23 22:58:55 +00:00
description = "notifier server for discours.io"
authors = ["discours.io devteam"]
[tool.poetry.dependencies]
2024-02-05 13:11:21 +00:00
python = "^3.11"
2023-11-23 22:58:55 +00:00
SQLAlchemy = "^2.0.22"
psycopg2-binary = "^2.9.9"
redis = {extras = ["hiredis"], version = "^5.0.1"}
2023-12-17 22:20:13 +00:00
strawberry-graphql = {extras = ["asgi", "debug-server"], version = "^0.216.1" }
strawberry-sqlalchemy-mapper = "^0.4.0"
2023-11-26 10:18:57 +00:00
sentry-sdk = "^1.37.1"
2023-11-30 06:42:41 +00:00
aiohttp = "^3.9.1"
2024-02-04 05:03:29 +00:00
granian = "^1.0.2"
2023-11-23 22:58:55 +00:00
2023-12-17 22:20:13 +00:00
[tool.poetry.group.dev.dependencies]
setuptools = "^69.0.2"
2023-11-23 22:58:55 +00:00
pytest = "^7.4.2"
2023-12-17 11:42:04 +00:00
black = { version = "^23.12.0", python = ">=3.12" }
2024-02-04 04:58:44 +00:00
ruff = { version = "^0.1.15", python = ">=3.12" }
2023-11-26 10:18:57 +00:00
mypy = { version = "^1.7", python = ">=3.12" }
2023-12-17 22:20:13 +00:00
isort = "^5.13.2"
pyright = "^1.1.341"
2024-02-04 04:58:44 +00:00
pre-commit = "^3.6.0"
2024-02-05 13:01:26 +00:00
pytest-asyncio = "^0.23.4"
2024-02-05 13:16:54 +00:00
pytest-cov = "^4.1.0"
2023-11-23 22:58:55 +00:00
[tool.black]
line-length = 120
2024-02-05 13:11:21 +00:00
target-version = ['py311']
2023-11-23 22:58:55 +00:00
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
2023-12-17 22:20:13 +00:00
2023-11-26 10:18:57 +00:00
[tool.pyright]
2023-11-26 19:00:00 +00:00
venvPath = "."
venv = ".venv"
2023-11-26 12:37:22 +00:00
include = ["."]
2023-12-17 22:20:13 +00:00
useLibraryCodeForTypes = true
disableLanguageServices = false
disableOrganizeImports = false
reportMissingImports = false
reportMissingModuleSource = "warning"
reportImportCycles = "warning"
maxMemoryForLargeFile = 4096
2024-02-05 13:11:21 +00:00
pythonVersion = "3.11"
2023-12-17 22:20:13 +00:00
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
2023-11-26 10:18:57 +00:00
[tool.mypy]
2024-02-05 13:11:21 +00:00
python_version = "3.11"
2023-11-26 10:18:57 +00:00
warn_unused_configs = true
2023-11-26 10:51:06 +00:00
plugins = ["mypy_sqlalchemy.plugin", "strawberry.ext.mypy_plugin"]
2023-12-17 11:42:04 +00:00
[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
2024-02-05 13:11:21 +00:00
target-version = "py311"
2024-02-05 13:01:26 +00:00
[tool.pytest.ini_options]
pythonpath = [
"."
]
[tool.pytest]
python_files = "*_test.py"