2021-05-09 02:29:31 +00:00
|
|
|
[tool.poetry]
|
|
|
|
authors = ["Hayden <hay-kot@pm.me>"]
|
2022-12-01 05:20:28 +00:00
|
|
|
description = "A Recipe Manager"
|
2022-07-31 21:10:20 +00:00
|
|
|
license = "AGPL"
|
2022-12-01 05:20:28 +00:00
|
|
|
name = "mealie"
|
|
|
|
version = "1.0.0b"
|
2021-05-09 02:29:31 +00:00
|
|
|
|
|
|
|
[tool.poetry.scripts]
|
|
|
|
start = "mealie.app:main"
|
|
|
|
|
|
|
|
[tool.poetry.dependencies]
|
2022-12-01 05:20:28 +00:00
|
|
|
Jinja2 = "^3.1.2"
|
|
|
|
Pillow = "^9.2.0"
|
|
|
|
PyYAML = "^5.3.1"
|
|
|
|
SQLAlchemy = "^1.4.29"
|
2022-12-30 20:44:54 +00:00
|
|
|
aiofiles = "^22.1.0"
|
2022-12-01 05:20:28 +00:00
|
|
|
alembic = "^1.7.5"
|
2023-01-02 00:44:19 +00:00
|
|
|
aniso8601 = "9.0.1"
|
2021-05-09 02:29:31 +00:00
|
|
|
appdirs = "1.4.4"
|
2022-12-01 05:20:28 +00:00
|
|
|
apprise = "^1.2.0"
|
|
|
|
bcrypt = "^4.0.1"
|
2023-01-01 22:47:27 +00:00
|
|
|
extruct = "^0.14.0"
|
2022-12-30 20:44:54 +00:00
|
|
|
fastapi = "^0.88.0"
|
2022-12-01 05:20:28 +00:00
|
|
|
gunicorn = "^20.1.0"
|
2022-01-10 06:04:24 +00:00
|
|
|
lxml = "^4.7.1"
|
2022-12-01 05:20:28 +00:00
|
|
|
orjson = "^3.8.0"
|
|
|
|
passlib = "^1.7.4"
|
2021-06-22 18:22:31 +00:00
|
|
|
psycopg2-binary = {version = "^2.9.1", optional = true}
|
2022-12-30 20:44:54 +00:00
|
|
|
pydantic = "^1.10.4"
|
2022-03-25 18:56:49 +00:00
|
|
|
pyhumps = "^3.5.3"
|
2022-09-25 23:00:45 +00:00
|
|
|
pytesseract = "^0.3.9"
|
2022-12-01 05:20:28 +00:00
|
|
|
python = "^3.10"
|
2022-10-22 18:44:32 +00:00
|
|
|
python-dateutil = "^2.8.2"
|
2022-12-30 20:44:54 +00:00
|
|
|
python-dotenv = "^0.21.0"
|
2022-12-01 05:20:28 +00:00
|
|
|
python-jose = "^3.3.0"
|
|
|
|
python-ldap = "^3.3.1"
|
|
|
|
python-multipart = "^0.0.5"
|
2023-01-01 23:07:01 +00:00
|
|
|
python-slugify = "^7.0.0"
|
2023-01-01 22:47:27 +00:00
|
|
|
recipe-scrapers = "^14.26.0"
|
2022-12-01 05:20:28 +00:00
|
|
|
requests = "^2.25.1"
|
2022-12-30 01:11:07 +00:00
|
|
|
tzdata = "^2022.7"
|
2022-12-30 20:44:54 +00:00
|
|
|
uvicorn = {extras = ["standard"], version = "^0.20.0"}
|
|
|
|
httpx = "^0.23.1"
|
2021-05-09 02:29:31 +00:00
|
|
|
|
2022-12-29 23:21:48 +00:00
|
|
|
[tool.poetry.group.dev.dependencies]
|
2022-01-10 06:04:24 +00:00
|
|
|
black = "^21.12b0"
|
2023-01-01 20:53:51 +00:00
|
|
|
coverage = "^7.0"
|
2022-01-13 22:06:52 +00:00
|
|
|
coveragepy-lcov = "^0.1.1"
|
2022-12-01 05:20:28 +00:00
|
|
|
mkdocs-material = "^8.2.3"
|
2023-01-01 22:47:27 +00:00
|
|
|
mypy = "^0.991"
|
|
|
|
openapi-spec-validator = "^0.5.0"
|
2022-12-01 05:20:28 +00:00
|
|
|
pre-commit = "^2.20.0"
|
|
|
|
pydantic-to-typescript = "^1.0.7"
|
|
|
|
pylint = "^2.6.0"
|
|
|
|
pytest = "^7.2.0"
|
2023-01-01 17:21:01 +00:00
|
|
|
rich = "^13.0.0"
|
2023-01-01 22:47:27 +00:00
|
|
|
ruff = "^0.0.206"
|
2022-03-15 23:01:56 +00:00
|
|
|
types-PyYAML = "^6.0.4"
|
2022-12-01 05:20:28 +00:00
|
|
|
types-python-dateutil = "^2.8.18"
|
2023-01-01 20:29:49 +00:00
|
|
|
types-python-slugify = "^6.0.0"
|
2022-03-15 23:01:56 +00:00
|
|
|
types-requests = "^2.27.12"
|
|
|
|
types-urllib3 = "^1.26.11"
|
2022-07-10 04:57:09 +00:00
|
|
|
|
2021-05-09 02:29:31 +00:00
|
|
|
[build-system]
|
|
|
|
build-backend = "poetry.core.masonry.api"
|
2022-12-01 05:20:28 +00:00
|
|
|
requires = ["poetry-core>=1.0.0"]
|
2021-05-09 02:29:31 +00:00
|
|
|
|
|
|
|
[tool.black]
|
|
|
|
line-length = 120
|
2022-01-13 22:06:52 +00:00
|
|
|
target-version = ["py310"]
|
|
|
|
|
|
|
|
[tool.vulture]
|
|
|
|
exclude = ["**/models/**/*.py", "dir/"]
|
|
|
|
ignore_decorators = ["@*router.*", "@app.on_event", "@validator", "@controller"]
|
|
|
|
make_whitelist = true
|
|
|
|
min_confidence = 60
|
|
|
|
paths = ["mealie"]
|
|
|
|
sort_by_size = true
|
2021-08-28 22:27:56 +00:00
|
|
|
|
2021-05-09 02:29:31 +00:00
|
|
|
[tool.pytest.ini_options]
|
2022-12-01 05:20:28 +00:00
|
|
|
addopts = "-ra -q"
|
2021-05-09 02:29:31 +00:00
|
|
|
minversion = "6.0"
|
|
|
|
python_classes = '*Tests'
|
2022-12-01 05:20:28 +00:00
|
|
|
python_files = 'test_*'
|
2021-05-09 02:29:31 +00:00
|
|
|
python_functions = 'test_*'
|
|
|
|
testpaths = [
|
2022-12-01 05:20:28 +00:00
|
|
|
"tests",
|
2021-05-09 02:29:31 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
[tool.coverage.report]
|
2021-06-11 23:30:06 +00:00
|
|
|
skip_empty = true
|
|
|
|
|
|
|
|
[tool.poetry.extras]
|
2022-03-15 23:01:56 +00:00
|
|
|
pgsql = ["psycopg2-binary"]
|
|
|
|
|
|
|
|
[tool.mypy]
|
|
|
|
follow_imports = "skip"
|
2022-12-01 05:20:28 +00:00
|
|
|
ignore_missing_imports = true
|
2022-10-18 22:49:41 +00:00
|
|
|
plugins = "pydantic.mypy"
|
2022-12-01 05:20:28 +00:00
|
|
|
python_version = "3.10"
|
|
|
|
strict_optional = true
|
|
|
|
|
|
|
|
[tool.ruff]
|
|
|
|
line-length = 120
|
|
|
|
format = "text"
|
|
|
|
|
|
|
|
# Enable Pyflakes `E` and `F` codes by default.
|
2022-12-29 23:48:32 +00:00
|
|
|
ignore = ["F403", "TID252","B008"]
|
2022-12-01 05:20:28 +00:00
|
|
|
select = [
|
|
|
|
"E", # pycodestyles
|
|
|
|
"F", # pyflakes
|
|
|
|
"I", # isort
|
|
|
|
"T", # flake8-print
|
2022-12-29 23:48:32 +00:00
|
|
|
"UP", # pyupgrade
|
2022-12-01 05:20:28 +00:00
|
|
|
"B", # flake8-bugbear
|
|
|
|
# "ANN", # flake8-annotations
|
|
|
|
# "C", # McCabe complexity
|
|
|
|
# "RUF", # Ruff specific
|
|
|
|
# "BLE", # blind-except
|
|
|
|
]
|
|
|
|
|
|
|
|
# Exclude a variety of commonly ignored directories.
|
|
|
|
exclude = [
|
|
|
|
".bzr",
|
|
|
|
".direnv",
|
|
|
|
".eggs",
|
|
|
|
".git",
|
|
|
|
".hg",
|
|
|
|
".mypy_cache",
|
|
|
|
".nox",
|
|
|
|
".pants.d",
|
|
|
|
".ruff_cache",
|
|
|
|
".svn",
|
|
|
|
".tox",
|
|
|
|
".venv",
|
|
|
|
"__pypackages__",
|
|
|
|
"_build",
|
|
|
|
"buck-out",
|
|
|
|
"build",
|
|
|
|
"dist",
|
|
|
|
"node_modules",
|
|
|
|
"venv",
|
|
|
|
]
|
|
|
|
|
|
|
|
# Assume Python 3.10.
|
|
|
|
target-version = "py310"
|
|
|
|
|
|
|
|
[tool.ruff.per-file-ignores]
|
|
|
|
"__init__.py" = ["E402","E501"]
|
|
|
|
|
|
|
|
[tool.ruff.mccabe]
|
|
|
|
# Unlike Flake8, default to a complexity level of 10.
|
|
|
|
max-complexity = 10
|