Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ repos:
- Babel
- aiohttp
- aiosqlite
- asyncio-for-ynab~=1.83.0
- asyncio-for-ynab~=1.84.0
- pyecharts
- rich>=10
- sqlite-export-for-ynab~=2.7.1
- sqlite-export-for-ynab~=2.8.0
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: 9257c6050c0261b8c57e712f632dc4a8010109a9 # frozen: v1.25.2
hooks:
Expand Down
5 changes: 2 additions & 3 deletions manager_for_ynab/sankey/sankey.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ WITH filtered_transactions AS (
, category_id
, category_name
, amount
, internal
, COALESCE(payee_name, '') AS payee_name
FROM flat_transactions
WHERE
Expand Down Expand Up @@ -41,9 +42,7 @@ WITH filtered_transactions AS (
, category_name AS payee_name
, SUM(amount) AS amount
FROM filtered_transactions
WHERE
category_group_name != 'Internal Master Category'
AND category_name != 'Inflow: Ready to Assign'
WHERE NOT internal
GROUP BY
category_group_id
, category_group_name
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ install_requires =
Babel
aiohttp
aiosqlite
asyncio-for-ynab~=1.83.0
asyncio-for-ynab~=1.84.0
prompt-toolkit
pyecharts
rich>=10
sqlite-export-for-ynab~=2.7.1
sqlite-export-for-ynab~=2.8.0
python_requires = >=3.14

[options.entry_points]
Expand Down
2 changes: 2 additions & 0 deletions tests/add_transaction/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ async def test_move_funds_moves_credit_card_payment_back_to_ready_to_assign(
category_group_name="Credit Card Payments",
name="Credit Card",
hidden=False,
internal=False,
budgeted=30000,
activity=0,
balance=0,
Expand Down Expand Up @@ -484,6 +485,7 @@ async def test_move_funds_reports_returned_credit_card_payment(
category_group_name="Credit Card Payments",
name="Credit Card",
hidden=False,
internal=False,
budgeted=30000,
activity=0,
balance=0,
Expand Down
10 changes: 10 additions & 0 deletions tests/sankey/seed.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ CREATE TABLE flat_transactions (
, cleared TEXT
, "date" TEXT
, payee_name TEXT
, internal BOOLEAN
)
;

Expand All @@ -20,6 +21,7 @@ INSERT INTO flat_transactions VALUES
, 'reconciled'
, '2026-04-01'
, 'Employer'
, TRUE
)
, (
'bills-group'
Expand All @@ -30,6 +32,7 @@ INSERT INTO flat_transactions VALUES
, 'reconciled'
, '2026-04-02'
, 'Landlord'
, FALSE
)
, (
'food-group'
Expand All @@ -40,6 +43,7 @@ INSERT INTO flat_transactions VALUES
, 'Reconciled'
, '2026-04-03'
, 'Market'
, FALSE
)
, (
'food-group'
Expand All @@ -50,6 +54,7 @@ INSERT INTO flat_transactions VALUES
, 'cleared'
, '2026-04-03'
, 'Cafe'
, FALSE
)
, (
'gifts-group'
Expand All @@ -60,6 +65,7 @@ INSERT INTO flat_transactions VALUES
, 'reconciled'
, '2026-04-03'
, 'Maria Oculam'
, FALSE
)
, (
'gifts-group'
Expand All @@ -70,6 +76,7 @@ INSERT INTO flat_transactions VALUES
, 'reconciled'
, '2026-04-04'
, 'Gift Shop'
, FALSE
)
, (
'internal-group'
Expand All @@ -80,6 +87,7 @@ INSERT INTO flat_transactions VALUES
, 'reconciled'
, '2026-04-03'
, 'Hidden'
, TRUE
)
, (
'bills-group'
Expand All @@ -90,6 +98,7 @@ INSERT INTO flat_transactions VALUES
, 'reconciled'
, '2026-05-01'
, 'Landlord'
, FALSE
)
, (
'inflow-group'
Expand All @@ -100,5 +109,6 @@ INSERT INTO flat_transactions VALUES
, 'reconciled'
, '2026-04-04'
, 'Starting Balance'
, TRUE
)
;
2 changes: 2 additions & 0 deletions tests/zero_out/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def build(
id=group_id,
name=name,
hidden=False,
internal=False,
deleted=False,
categories=[
Category(
Expand All @@ -59,6 +60,7 @@ def build(
category_group_name=name,
name=category_name,
hidden=False,
internal=False,
budgeted=0,
activity=0,
balance=0,
Expand Down
Loading