Skip to content

Add validation for non-positive values - #21

Merged
TheCoder30ec4 merged 2 commits into
TheCoder30ec4:mainfrom
DavidPloeg:fix/Limits_accepts_negative_or_zero_values
Sep 25, 2026
Merged

TheCoder30ec4 merged 2 commits into
TheCoder30ec4:mainfrom
DavidPloeg:fix/Limits_accepts_negative_or_zero_values

Conversation

@DavidPloeg

@DavidPloeg DavidPloeg commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

What does this change?

Fixes #9 (comment)
Added three checks for None and negative/zero values as well as pytests to verify.

How was it tested?

I only ran the tests the readme's asked for. So pytest and the two ruff checks.

Checklist

  • uv run pytest passes
  • uv run ruff check . and uv run ruff format --check . pass
  • Tests added or updated for new behavior
  • README / CHANGELOG updated if users will notice the change
  • No API keys or .env contents in the diff

@TheCoder30ec4

Copy link
Copy Markdown
Owner

check for the merge conflict

@TheCoder30ec4
TheCoder30ec4 merged commit e317605 into TheCoder30ec4:main Sep 25, 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.

Limits accepts negative or zero values without complaint

2 participants