Skip to content

Commit baac8ea

Browse files
authored
Bump sqlite-export-for-ynab to 2.8.0 (#78)
Automated dependency bump for `sqlite-export-for-ynab` to `2.8.0`.
1 parent ff833ec commit baac8ea

6 files changed

Lines changed: 20 additions & 7 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ repos:
4343
- Babel
4444
- aiohttp
4545
- aiosqlite
46-
- asyncio-for-ynab~=1.83.0
46+
- asyncio-for-ynab~=1.84.0
4747
- pyecharts
4848
- rich>=10
49-
- sqlite-export-for-ynab~=2.7.1
49+
- sqlite-export-for-ynab~=2.8.0
5050
- repo: https://github.com/zizmorcore/zizmor-pre-commit
5151
rev: 9257c6050c0261b8c57e712f632dc4a8010109a9 # frozen: v1.25.2
5252
hooks:

manager_for_ynab/sankey/sankey.sql

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ WITH filtered_transactions AS (
55
, category_id
66
, category_name
77
, amount
8+
, internal
89
, COALESCE(payee_name, '') AS payee_name
910
FROM flat_transactions
1011
WHERE
@@ -41,9 +42,7 @@ WITH filtered_transactions AS (
4142
, category_name AS payee_name
4243
, SUM(amount) AS amount
4344
FROM filtered_transactions
44-
WHERE
45-
category_group_name != 'Internal Master Category'
46-
AND category_name != 'Inflow: Ready to Assign'
45+
WHERE NOT internal
4746
GROUP BY
4847
category_group_id
4948
, category_group_name

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ install_requires =
2222
Babel
2323
aiohttp
2424
aiosqlite
25-
asyncio-for-ynab~=1.83.0
25+
asyncio-for-ynab~=1.84.0
2626
prompt-toolkit
2727
pyecharts
2828
rich>=10
29-
sqlite-export-for-ynab~=2.7.1
29+
sqlite-export-for-ynab~=2.8.0
3030
python_requires = >=3.14
3131

3232
[options.entry_points]

tests/add_transaction/test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ async def test_move_funds_moves_credit_card_payment_back_to_ready_to_assign(
221221
category_group_name="Credit Card Payments",
222222
name="Credit Card",
223223
hidden=False,
224+
internal=False,
224225
budgeted=30000,
225226
activity=0,
226227
balance=0,
@@ -484,6 +485,7 @@ async def test_move_funds_reports_returned_credit_card_payment(
484485
category_group_name="Credit Card Payments",
485486
name="Credit Card",
486487
hidden=False,
488+
internal=False,
487489
budgeted=30000,
488490
activity=0,
489491
balance=0,

tests/sankey/seed.sql

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ CREATE TABLE flat_transactions (
77
, cleared TEXT
88
, "date" TEXT
99
, payee_name TEXT
10+
, internal BOOLEAN
1011
)
1112
;
1213

@@ -20,6 +21,7 @@ INSERT INTO flat_transactions VALUES
2021
, 'reconciled'
2122
, '2026-04-01'
2223
, 'Employer'
24+
, TRUE
2325
)
2426
, (
2527
'bills-group'
@@ -30,6 +32,7 @@ INSERT INTO flat_transactions VALUES
3032
, 'reconciled'
3133
, '2026-04-02'
3234
, 'Landlord'
35+
, FALSE
3336
)
3437
, (
3538
'food-group'
@@ -40,6 +43,7 @@ INSERT INTO flat_transactions VALUES
4043
, 'Reconciled'
4144
, '2026-04-03'
4245
, 'Market'
46+
, FALSE
4347
)
4448
, (
4549
'food-group'
@@ -50,6 +54,7 @@ INSERT INTO flat_transactions VALUES
5054
, 'cleared'
5155
, '2026-04-03'
5256
, 'Cafe'
57+
, FALSE
5358
)
5459
, (
5560
'gifts-group'
@@ -60,6 +65,7 @@ INSERT INTO flat_transactions VALUES
6065
, 'reconciled'
6166
, '2026-04-03'
6267
, 'Maria Oculam'
68+
, FALSE
6369
)
6470
, (
6571
'gifts-group'
@@ -70,6 +76,7 @@ INSERT INTO flat_transactions VALUES
7076
, 'reconciled'
7177
, '2026-04-04'
7278
, 'Gift Shop'
79+
, FALSE
7380
)
7481
, (
7582
'internal-group'
@@ -80,6 +87,7 @@ INSERT INTO flat_transactions VALUES
8087
, 'reconciled'
8188
, '2026-04-03'
8289
, 'Hidden'
90+
, TRUE
8391
)
8492
, (
8593
'bills-group'
@@ -90,6 +98,7 @@ INSERT INTO flat_transactions VALUES
9098
, 'reconciled'
9199
, '2026-05-01'
92100
, 'Landlord'
101+
, FALSE
93102
)
94103
, (
95104
'inflow-group'
@@ -100,5 +109,6 @@ INSERT INTO flat_transactions VALUES
100109
, 'reconciled'
101110
, '2026-04-04'
102111
, 'Starting Balance'
112+
, TRUE
103113
)
104114
;

tests/zero_out/fixtures.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def build(
5151
id=group_id,
5252
name=name,
5353
hidden=False,
54+
internal=False,
5455
deleted=False,
5556
categories=[
5657
Category(
@@ -59,6 +60,7 @@ def build(
5960
category_group_name=name,
6061
name=category_name,
6162
hidden=False,
63+
internal=False,
6264
budgeted=0,
6365
activity=0,
6466
balance=0,

0 commit comments

Comments
 (0)