Skip to content

Bugfix/142 non numerical values in ods file#148

Merged
macanudo527 merged 10 commits intoeprbell:mainfrom
jayr0d:bugfix/142-Non-numerical-values-in-ODS-file
Jan 26, 2026
Merged

Bugfix/142 non numerical values in ods file#148
macanudo527 merged 10 commits intoeprbell:mainfrom
jayr0d:bugfix/142-Non-numerical-values-in-ODS-file

Conversation

@jayr0d
Copy link
Copy Markdown
Contributor

@jayr0d jayr0d commented Jan 7, 2026

Bugfix: Update golden files for lofo (lowest in, first out) accounting method and remove check for selected_acquired_lot_amount > taxable_event_amount.

Maintenance:

  • Update pre-commit repos and remove additional_dependencies: [black==20.8b1], this avoids issues with:
    • The user requested black==20.8b1, blacken-docs 1.20.0 depends on black>=22.1
    • Failed building wheel for typed-ast
  • Updated README.dev.md: update local pre-commit repos
  • mypy, black, isort, etc

@macanudo527
Copy link
Copy Markdown
Collaborator

@jayr0d

Looks like you just need to update the config files to delete python 3.8/9

…rical-values-in-ODS-file

Updated README.dev.md: update local pre-commit repos
@jayr0d
Copy link
Copy Markdown
Contributor Author

jayr0d commented Jan 13, 2026

Merged and pull request comment updated.

@macanudo527
Copy link
Copy Markdown
Collaborator

@jayr0d
Sorry, but could you explain this bug a little more.

Why did you remove the check for selected_acquired_lot_amount > taxable_event_amount

@jayr0d
Copy link
Copy Markdown
Contributor Author

jayr0d commented Jan 23, 2026

I thought I had enough of those details in #142 already. I guess there are a number of posts to get through. The good one is #142 (comment) I tracked down the offending change. The short of it is Commit 21f9e18 should have never happened and I undid it. The unit tests gold data was inadequate and did not catch the issue that it caused. #142 (comment) is the other good post. There was no LOFO gold data when the issue was introduced and then a gold data set was generated for LOFO based on the bad code. I gave a specific example in the posts following that one where you can easily follow along and see it is not grabbing lots correctly without my changes.

Copy link
Copy Markdown
Collaborator

@macanudo527 macanudo527 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@macanudo527 macanudo527 merged commit eb2a368 into eprbell:main Jan 26, 2026
19 checks passed
macanudo527 pushed a commit to eprbell/dali-rp2 that referenced this pull request Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants