From 5249d94cbeb66505bd83f612f4955d6b794a1c7c Mon Sep 17 00:00:00 2001 From: John McCann Date: Wed, 21 Feb 2024 10:27:00 -0700 Subject: [PATCH] rfct: Fix lint failures Added some missing whitespace. --- beancount_reds_plugins/zerosum/test_zerosum.py | 1 - beancount_reds_plugins/zerosum/zerosum.py | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/beancount_reds_plugins/zerosum/test_zerosum.py b/beancount_reds_plugins/zerosum/test_zerosum.py index ecde83d..e0344ab 100644 --- a/beancount_reds_plugins/zerosum/test_zerosum.py +++ b/beancount_reds_plugins/zerosum/test_zerosum.py @@ -78,7 +78,6 @@ def test_single_rename(self, entries, _, options_map): for (m, p) in ref: self.assertEqual('Assets:ZSA-Matched:Returns-and-Temporary', matched[m].postings[p].account) - self.assertTrue('match_id' not in matched[m].postings[p].meta) @loader.load_doc() def test_above_tolerance(self, entries, _, options_map): diff --git a/beancount_reds_plugins/zerosum/zerosum.py b/beancount_reds_plugins/zerosum/zerosum.py index 84fee98..d1567e9 100644 --- a/beancount_reds_plugins/zerosum/zerosum.py +++ b/beancount_reds_plugins/zerosum/zerosum.py @@ -176,7 +176,7 @@ DEBUG = 0 DEFAULT_TOLERANCE = 0.0099 MATCHING_ID_STRING = "match_id" -random.seed(6) # arbitrary fixed seed +random.seed(6) # arbitrary fixed seed __plugins__ = ('zerosum', 'flag_unmatched',) @@ -297,9 +297,9 @@ def generate_match_id(): match_count += 1 match_id = generate_match_id() if match_metadata else None account_replace(txn, posting, target_account, - match_id=match_id) + match_id) account_replace(match[1], match[0], target_account, - match_id=match_id) + match_id) new_accounts.add(target_account) reprocess = True break