* refactor: apply future style type hints * chore: put cryptography out of dev dependencies
82 lines
2.2 KiB
TOML
82 lines
2.2 KiB
TOML
[tool.poetry]
|
|
name = "aerich"
|
|
version = "0.8.1"
|
|
description = "A database migrations tool for Tortoise ORM."
|
|
authors = ["long2ice <long2ice@gmail.com>"]
|
|
license = "Apache-2.0"
|
|
readme = "README.md"
|
|
homepage = "https://github.com/tortoise/aerich"
|
|
repository = "https://github.com/tortoise/aerich.git"
|
|
documentation = "https://github.com/tortoise/aerich"
|
|
keywords = ["migrate", "Tortoise-ORM", "mysql"]
|
|
packages = [
|
|
{ include = "aerich" }
|
|
]
|
|
include = ["CHANGELOG.md", "LICENSE", "README.md"]
|
|
|
|
[tool.poetry.dependencies]
|
|
python = "^3.8"
|
|
tortoise-orm = ">=0.21"
|
|
asyncpg = { version = "*", optional = true }
|
|
asyncmy = { version = "^0.2.9", optional = true, allow-prereleases = true }
|
|
pydantic = "^2.0,!=2.7.0"
|
|
dictdiffer = "*"
|
|
tomlkit = { version = "*", optional = true, python="<3.11" }
|
|
tomli-w = { version = "^1.1.0", optional = true, python=">=3.11" }
|
|
asyncclick = "^8.1.7.2"
|
|
eval-type-backport = { version = "^0.2.2", python="<3.10" }
|
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
ruff = "*"
|
|
pytest = "*"
|
|
pytest-xdist = "*"
|
|
# Breaking change in 0.23.*
|
|
# https://github.com/pytest-dev/pytest-asyncio/issues/706
|
|
pytest-asyncio = "^0.21.2"
|
|
bandit = "*"
|
|
pytest-mock = "*"
|
|
mypy = "^1.10.0"
|
|
|
|
[tool.poetry.extras]
|
|
asyncmy = ["asyncmy"]
|
|
asyncpg = ["asyncpg"]
|
|
toml = ["tomlkit", "tomli-w"]
|
|
|
|
|
|
[tool.aerich]
|
|
tortoise_orm = "conftest.tortoise_orm"
|
|
location = "./migrations"
|
|
src_folder = "./."
|
|
|
|
[build-system]
|
|
requires = ["poetry-core>=1.0.0"]
|
|
build-backend = "poetry.core.masonry.api"
|
|
|
|
[tool.poetry.scripts]
|
|
aerich = "aerich.cli:main"
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = 'auto'
|
|
|
|
[tool.mypy]
|
|
pretty = true
|
|
python_version = "3.8"
|
|
ignore_missing_imports = true
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
|
|
[tool.ruff.lint]
|
|
extend-select = [
|
|
"I", # https://docs.astral.sh/ruff/rules/#isort-i
|
|
"SIM", # https://docs.astral.sh/ruff/rules/#flake8-simplify-sim
|
|
"FA", # https://docs.astral.sh/ruff/rules/#flake8-future-annotations-fa
|
|
"UP", # https://docs.astral.sh/ruff/rules/#pyupgrade-up
|
|
"RUF100", # https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf
|
|
]
|
|
ignore = ["UP031"] # https://docs.astral.sh/ruff/rules/printf-string-formatting/
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
# TODO: Remove this line when dropping support for Python3.8
|
|
"aerich/inspectdb/__init__.py" = ["UP006", "UP035"]
|