diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..e0ea542 --- /dev/null +++ b/.flake8 @@ -0,0 +1,3 @@ +[flake8] +max-line-length = 88 +extend-ignore = E203 \ No newline at end of file diff --git a/pfbudget/cli/interactive.py b/pfbudget/cli/interactive.py index f0c3c7e..cd392c1 100644 --- a/pfbudget/cli/interactive.py +++ b/pfbudget/cli/interactive.py @@ -65,7 +65,8 @@ class Interactive: continue if other.startswith("note:"): - # TODO adding notes to a splitted transaction won't allow categorization + # TODO adding notes to a splitted transaction won't allow + # categorization next.note = Note(other[len("note:") :].strip()) else: ct = other.split(":") diff --git a/pfbudget/core/categories.py b/pfbudget/core/categories.py index 82c2653..4f5f4e1 100644 --- a/pfbudget/core/categories.py +++ b/pfbudget/core/categories.py @@ -54,7 +54,6 @@ groups = { def categorize_data(db: DatabaseClient): - # 1st) Classifying null transactions, i.e. transfers between banks. # Will not overwrite previous categories nulls(db) @@ -77,7 +76,8 @@ def categorize_data(db: DatabaseClient): # 4th) Manually update categories from the uncategorized transactions if transactions := db.get_uncategorized_transactions(): print( - f"Still {len(transactions)} uncategorized transactions left. Type quit/exit to exit the program." + f"Still {len(transactions)} uncategorized transactions left. Type quit/exit" + "to exit the program." ) for transaction in transactions: while True: @@ -88,7 +88,8 @@ def categorize_data(db: DatabaseClient): break if category not in categories: print( - f"Category {category} doesn't exist. Please use one of {categories.keys()}" + f"Category {category} doesn't exist. Please use one of" + f"{categories.keys()}" ) else: transaction.category = category diff --git a/pfbudget/core/manager.py b/pfbudget/core/manager.py index 2bf5f0b..cf9f7c1 100644 --- a/pfbudget/core/manager.py +++ b/pfbudget/core/manager.py @@ -270,7 +270,8 @@ class Manager: row["date"], row["description"], row["amount"] ) - # TODO case "split" how to match to original transaction?? also save ids? + # TODO case "split" how to match to original transaction?? also + # save ids? case _: continue diff --git a/pfbudget/db/schema.py b/pfbudget/db/schema.py index e212994..24c726a 100644 --- a/pfbudget/db/schema.py +++ b/pfbudget/db/schema.py @@ -141,7 +141,8 @@ ORDER BY date ASC """ ADD_BANK = """ -INSERT INTO banks (name, bic, nordigen_id, nordigen_name, requisition_id, invert) values (?,?,?,?,?,?) +INSERT INTO banks (name, bic, nordigen_id, nordigen_name, requisition_id, invert) +values (?,?,?,?,?,?) """ DELETE_BANK = """