2025-10-18 03:26:42 +00:00
|
|
|
[tool.ruff]
|
|
|
|
|
line-length = 100
|
|
|
|
|
target-version = "py311"
|
|
|
|
|
|
|
|
|
|
[tool.ruff.lint]
|
|
|
|
|
select = ["E", "F", "I"]
|
|
|
|
|
ignore = ["E203", "E501"]
|
|
|
|
|
|
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
|
|
|
"tests/**.py" = [
|
|
|
|
|
"E402",
|
|
|
|
|
"F401",
|
|
|
|
|
"F811",
|
|
|
|
|
"I001",
|
|
|
|
|
"N802",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[tool.ruff.lint.isort]
|
|
|
|
|
combine-as-imports = true
|
|
|
|
|
known-first-party = ["ingredients", "meals", "persons", "products", "recipes", "shopping"]
|
|
|
|
|
|
|
|
|
|
[tool.mypy]
|
2025-10-19 09:24:23 +00:00
|
|
|
python_version = "3.11"
|
2025-10-18 03:26:42 +00:00
|
|
|
warn_unused_ignores = true
|
|
|
|
|
warn_redundant_casts = true
|
|
|
|
|
warn_unused_configs = true
|
|
|
|
|
ignore_missing_imports = true
|
|
|
|
|
strict_optional = true
|
|
|
|
|
no_implicit_optional = true
|
|
|
|
|
check_untyped_defs = true
|
|
|
|
|
exclude = "^(\\.*/)?tests($|/)"
|
|
|
|
|
|
|
|
|
|
[[tool.mypy.overrides]]
|
|
|
|
|
module = ["tests.*"]
|
|
|
|
|
ignore_errors = true
|
|
|
|
|
|
|
|
|
|
[tool.pytest.ini_options]
|
|
|
|
|
minversion = "7.0"
|
|
|
|
|
addopts = "-q"
|
|
|
|
|
pythonpath = ["."]
|