2020-04-19 00:27:48 +03:00
|
|
|
[tool.poetry]
|
|
|
|
name = "app"
|
|
|
|
version = "0.1.0"
|
|
|
|
description = ""
|
|
|
|
authors = ["Admin <admin@example.com>"]
|
|
|
|
|
|
|
|
[tool.poetry.dependencies]
|
2023-11-24 23:48:21 +01:00
|
|
|
python = "^3.10"
|
|
|
|
uvicorn = "^0.24.0.post1"
|
|
|
|
fastapi = "^0.104.1"
|
|
|
|
python-multipart = "^0.0.6"
|
|
|
|
email-validator = "^2.1.0.post1"
|
|
|
|
celery = "^5.3.5"
|
|
|
|
passlib = {extras = ["bcrypt"], version = "^1.7.4"}
|
|
|
|
tenacity = "^8.2.3"
|
|
|
|
pydantic = "<2.0"
|
|
|
|
emails = "^0.6"
|
2020-04-19 00:27:48 +03:00
|
|
|
|
2023-11-24 23:48:21 +01:00
|
|
|
gunicorn = "^21.2.0"
|
|
|
|
jinja2 = "^3.1.2"
|
|
|
|
alembic = "^1.12.1"
|
|
|
|
python-jose = {extras = ["cryptography"], version = "^3.3.0"}
|
|
|
|
httpx = "^0.25.1"
|
|
|
|
psycopg = {extras = ["binary"], version = "^3.1.13"}
|
2024-02-17 21:29:15 +01:00
|
|
|
sqlmodel = "^0.0.16"
|
2024-02-25 10:04:47 -05:00
|
|
|
# Pin bcrypt until passlib supports the latest
|
|
|
|
bcrypt = "4.0.1"
|
2023-11-24 23:48:21 +01:00
|
|
|
|
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
|
|
pytest = "^7.4.3"
|
|
|
|
pytest-cov = "^4.1.0"
|
2024-02-25 19:29:00 +01:00
|
|
|
mypy = "^1.8.0"
|
|
|
|
ruff = "^0.2.2"
|
|
|
|
pre-commit = "^3.6.2"
|
2020-04-19 00:27:48 +03:00
|
|
|
|
:recycle: Refactor backend, settings, DB sessions, types, configs, plugins (#158)
* :recycle: Refactor backend, update DB session handling
* :sparkles: Add mypy config and plugins
* :heavy_plus_sign: Use Python-jose instead of PyJWT
as it has some extra functionalities and features
* :sparkles: Add/update scripts for test, lint, format
* :wrench: Update lint and format configs
* :art: Update import format, comments, and types
* :art: Add types to config
* :sparkles: Add types for all the code, and small fixes
* :art: Use global imports to simplify exploring with Jupyter
* :recycle: Import schemas and models, instead of each class
* :truck: Rename db_session to db for simplicity
* :pushpin: Update dependencies installation for testing
2020-04-20 19:03:13 +02:00
|
|
|
[tool.isort]
|
|
|
|
multi_line_output = 3
|
|
|
|
include_trailing_comma = true
|
|
|
|
force_grid_wrap = 0
|
|
|
|
line_length = 88
|
2020-04-19 00:27:48 +03:00
|
|
|
[build-system]
|
|
|
|
requires = ["poetry>=0.12"]
|
|
|
|
build-backend = "poetry.masonry.api"
|
2024-02-25 19:29:00 +01:00
|
|
|
|
|
|
|
[tool.mypy]
|
|
|
|
strict = true
|
|
|
|
|
|
|
|
[tool.ruff]
|
|
|
|
target-version = "py310"
|
|
|
|
|
|
|
|
[tool.ruff.lint]
|
|
|
|
select = [
|
|
|
|
"E", # pycodestyle errors
|
|
|
|
"W", # pycodestyle warnings
|
|
|
|
"F", # pyflakes
|
|
|
|
"I", # isort
|
|
|
|
"B", # flake8-bugbear
|
|
|
|
"C4", # flake8-comprehensions
|
|
|
|
"UP", # pyupgrade
|
|
|
|
]
|
|
|
|
ignore = [
|
|
|
|
"E501", # line too long, handled by black
|
|
|
|
"B008", # do not perform function calls in argument defaults
|
|
|
|
"W191", # indentation contains tabs
|
|
|
|
"B904", # Allow raising exceptions without from e, for HTTPException
|
|
|
|
]
|
|
|
|
|
|
|
|
[tool.ruff.lint.pyupgrade]
|
|
|
|
# Preserve types, even if a file imports `from __future__ import annotations`.
|
|
|
|
keep-runtime-typing = true
|