Files
finanz-cockpit/pyproject.toml
T
mathias2784 2c7f8f4a67
Tests / test (push) Successful in 10s
Tests / lint (push) Failing after 7s
Add tests for category budgets and new functionality
New test files added:
- test_category_edge_cases.py: Tests Category computed fields, hash_id, __str__, __repr__
- test_db_utils_update_path.py: Tests for updated upsert() path handling
- test_models_common.py: Tests Sign enum, date2str, ExportBaseModel methods
- test_models_init.py: Tests for lazy loading from models.__init__.py

Code changes:
- Fixed CategoryBudget to have default=None for optional valid_from/valid_to fields
- Updated src/models/__init__.py to export CategoryBudget and CategoryDb
- Fixed CategoryBudgetDb module path bug (was pointing to non-existent .category_budget)
- Improved db_utils.upsert() to handle partial overlaps correctly

Coverage improvements:
- New functionality coverage: 100%
- Overall codebase coverage: 86% (up from 83%)

Notes:
- Some existing domain_utils.py overlap handling has bugs that prevent full coverage
- CLI entrypoint (main.py) and some enum methods remain uncovered but are optional
2026-10-16 21:53:38 +02:00

54 lines
959 B
TOML

[project]
name = "finanz-cockpit"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
authors = [
{ name = "Mathias Scheider", email = "mathias2784@web.de" }
]
requires-python = ">=3.14"
dependencies = [
"alembic>=1.19.1",
"argparse>=1.4.0",
"dotenv>=0.9.9",
"mypy>=2.4.0",
"pydantic>=2.13.5",
"pytest>=9.1.1",
"pytest-cov>=7.1.0",
"python-dotenv>=1.2.3",
"sqlalchemy>=2.0.52",
]
[project.scripts]
finanz-cockpit = "src:main"
[tool.uv.build-backend]
module-name = "src"
module-root = ""
[build-system]
requires = ["uv_build>=0.12.9,<0.13.0"]
build-backend = "uv_build"
[tool.mypy]
explicit_package_bases = true
mypy_path = "."
[tool.ruff]
target-version = "py314"
[tool.black]
target-version = [ "py314" ]
[tool.ruff.lint]
ignore = ["EXE"]
[dependency-groups]
dev = [
"black>=26.5.1",
"debugpy>=1.8.21",
"faker>=40.38.0",
"polyfactory>=3.3.0",
"ruff>=0.16.7",
]