unicorn_post/pyproject.toml

89 lines
2.2 KiB
TOML

[tool.poetry]
name = "unicorn-post"
version = "1.3.0"
description = "A Django web app to post messages on my Pimoroni Galactic unicorn via MQTT"
authors = ["Flavien Henrion <flavien@coincoinmail.fr>"]
[tool.poetry.dependencies]
python = "^3.11"
Django = "^4.2.1"
psycopg = "^3.1.9"
django-tailwind = "^3.5.0"
django-unicorn = {extras = ["minify"], version = "^0.51.1"}
paho-mqtt = "^1.6.1"
daphne = "^4.0.0"
whitenoise = {extras = ["brotli"], version = "^6.5.0"}
django-health-check = "^3.17.0"
django-allow-cidr = "^0.6.0"
[tool.poetry.group.dev.dependencies]
black = "^23.3.0"
mypy = "^1.2.0"
pylint = "^2.17.4"
pre-commit = "^3.3.2"
django-stubs = {extras = ["compatible-mypy"], version = "^4.2.0"}
coverage = "^7.2.7"
types-paho-mqtt = "^1.6.0.6"
poethepoet = {extras = ["poetry-plugin"], version = "^0.20.0"}
commitizen = "^3.3.0"
[tool.poetry.group.test.dependencies]
poethepoet = {extras = ["poetry-plugin"], version = "^0.20.0"}
coverage = "^7.2.7"
[tool.poetry.group.check.dependencies]
black = "^23.3.0"
mypy = "^1.2.0"
pylint = "^2.17.4"
django-stubs = {extras = ["compatible-mypy"], version = "^4.2.0"}
types-paho-mqtt = "^1.6.0.6"
poethepoet = {extras = ["poetry-plugin"], version = "^0.20.0"}
[tool.poetry.group.commit.dependencies]
commitizen = "^3.3.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
plugins = ["mypy_django_plugin.main"]
mypy_path = 'django_app'
[[tool.mypy.overrides]]
module = "django_unicorn.components"
ignore_missing_imports = true
[tool.django-stubs]
django_settings_module = "unicorn_post.settings"
[tool.pylint.messages_control]
disable = [
"missing-docstring",
"import-outside-toplevel",
"invalid-name",
"no-member",
"too-many-ancestors",
"consider-using-from-import"
]
[tool.poe]
poetry_command = ""
[tool.poe.tasks]
format = "black django_app"
check_format = "black --check django_app"
check_types = "mypy django_app"
check_code = "pylint --recursive y django_app"
lint = ["check_format", "check_types", "check_code"]
test = "python django_app/manage.py test django_app/"
[tool.commitizen]
version = "1.3.0"
update_changelog_on_bump = true
bump_message = "bump: version $current_version → $new_version [CI SKIP]"
annotated_tags = true
version_files = [
"pyproject.toml:version"
]