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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ repos:
- id: mypy
additional_dependencies:
- aiopathlib
- asyncio-for-ynab
- asyncio-for-ynab~=1.84.0
- rich>=10
language_version: python3.12
- repo: https://github.com/zizmorcore/zizmor-pre-commit
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ WITH params AS (
TRUE
AND NOT c.deleted
AND c.category_group_name != 'Credit Card Payments'
AND c.category_group_name != 'Internal Master Category'
AND NOT c.internal
AND (
v.include_category_groups = ''
OR EXISTS (
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ install_requires =
aiohttp>=3
aiopathlib
aiosqlite
asyncio-for-ynab
asyncio-for-ynab~=1.84.0
fasteners
rich>=10
tenacity
Expand Down
2 changes: 2 additions & 0 deletions sqlite_export_for_ynab/ddl/create-relations.sql
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ CREATE TABLE IF NOT EXISTS category_groups (
, plan_id TEXT
, name TEXT
, hidden BOOLEAN
, internal BOOLEAN
, deleted BOOLEAN
, FOREIGN KEY (plan_id) REFERENCES plans (id)
)
Expand All @@ -68,6 +69,7 @@ CREATE TABLE IF NOT EXISTS categories (
, category_group_name TEXT
, name TEXT
, hidden BOOLEAN
, internal BOOLEAN
, original_category_group_id TEXT
, note TEXT
, budgeted INT
Expand Down
6 changes: 6 additions & 0 deletions testing/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
id=UUID(CATEGORY_GROUP_ID_1),
name=CATEGORY_GROUP_NAME_1,
hidden=False,
internal=False,
deleted=False,
categories=[
Category(
Expand All @@ -164,6 +165,7 @@
category_group_name=CATEGORY_GROUP_NAME_1,
name=CATEGORY_NAME_1,
hidden=False,
internal=False,
original_category_group_id=None,
note=None,
budgeted=14500,
Expand Down Expand Up @@ -206,6 +208,7 @@
category_group_name=CATEGORY_GROUP_NAME_1,
name=CATEGORY_NAME_2,
hidden=False,
internal=False,
original_category_group_id=None,
note=None,
budgeted=10250,
Expand Down Expand Up @@ -248,6 +251,7 @@
id=UUID(CATEGORY_GROUP_ID_2),
name=CATEGORY_GROUP_NAME_2,
hidden=False,
internal=False,
deleted=False,
categories=[
Category(
Expand All @@ -256,6 +260,7 @@
category_group_name=CATEGORY_GROUP_NAME_2,
name=CATEGORY_NAME_3,
hidden=False,
internal=False,
original_category_group_id=None,
note=None,
budgeted=15000,
Expand Down Expand Up @@ -298,6 +303,7 @@
category_group_name=CATEGORY_GROUP_NAME_2,
name=CATEGORY_NAME_4,
hidden=False,
internal=False,
original_category_group_id=None,
note=None,
budgeted=20000,
Expand Down
7 changes: 7 additions & 0 deletions tests/_main_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,13 +255,15 @@ async def test_insert_category_groups(context):
"name": CATEGORY_GROUP_NAME_1,
"plan_id": PLAN_ID_1,
"hidden": False,
"internal": False,
"deleted": False,
},
{
"id": CATEGORY_GROUP_ID_2,
"name": CATEGORY_GROUP_NAME_2,
"plan_id": PLAN_ID_1,
"hidden": False,
"internal": False,
"deleted": False,
},
],
Expand All @@ -277,6 +279,7 @@ async def test_insert_category_groups(context):
"plan_id": PLAN_ID_1,
"name": CATEGORY_NAME_1,
"hidden": False,
"internal": False,
"original_category_group_id": None,
"note": None,
"budgeted": 14500,
Expand Down Expand Up @@ -319,6 +322,7 @@ async def test_insert_category_groups(context):
"plan_id": PLAN_ID_1,
"name": CATEGORY_NAME_2,
"hidden": False,
"internal": False,
"original_category_group_id": None,
"note": None,
"budgeted": 10250,
Expand Down Expand Up @@ -361,6 +365,7 @@ async def test_insert_category_groups(context):
"plan_id": PLAN_ID_1,
"name": CATEGORY_NAME_3,
"hidden": False,
"internal": False,
"original_category_group_id": None,
"note": None,
"budgeted": 15000,
Expand Down Expand Up @@ -403,6 +408,7 @@ async def test_insert_category_groups(context):
"plan_id": PLAN_ID_1,
"name": CATEGORY_NAME_4,
"hidden": False,
"internal": False,
"original_category_group_id": None,
"note": None,
"budgeted": 20000,
Expand Down Expand Up @@ -458,6 +464,7 @@ async def test_insert_category_group_without_categories(context):
"name": CATEGORY_GROUP_NAME_1,
"plan_id": PLAN_ID_1,
"hidden": False,
"internal": False,
"deleted": False,
},
],
Expand Down
Loading