Skip to content

Update calc_rule to use safer SimpleEval#58

Open
Monarda wants to merge 3 commits into
mainfrom
57-replace-eval-with-simpleeval
Open

Update calc_rule to use safer SimpleEval#58
Monarda wants to merge 3 commits into
mainfrom
57-replace-eval-with-simpleeval

Conversation

@Monarda

@Monarda Monarda commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Using the simpleeval library ought to be safer than using a naked eval().

This includes some Claude generated unit tests, some general busy-body tidying up of the file due to stricter ruff checks and my love of type-hinting. The actual key change is at line 138 of the old code / 150 of the new revised code.

@Monarda
Monarda requested a review from kurup July 14, 2026 16:03
@Monarda Monarda self-assigned this Jul 14, 2026
@Monarda Monarda added the enhancement New feature or request label Jul 14, 2026
@Monarda Monarda linked an issue Jul 14, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace eval with simpleeval

1 participant