Skip to content

Add the requireit module#3

Merged
mcflugen merged 2 commits into
mainfrom
mcflugen/add-requireit-module
Jan 10, 2026
Merged

Add the requireit module#3
mcflugen merged 2 commits into
mainfrom
mcflugen/add-requireit-module

Conversation

@mcflugen
Copy link
Copy Markdown
Owner

I've added the initial version of therequireit module.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces the initial version of the requireit module, a validation library for Python that provides functions to validate scalar values, arrays, and their properties. The module includes custom exception classes and various validation functions for common numeric constraints.

Changes:

  • Added the requireit.py module with validation functions for values and arrays
  • Updated CHANGES.md to document the addition of the requireit module

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/requireit.py New module containing exception classes (RequireItError, ValidationError) and validation functions (require_one_of, require_between, require_positive/negative/nonnegative/nonpositive, validate_array)
CHANGES.md Added changelog entry for the new requireit module

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/requireit.py
Comment thread src/requireit.py Outdated
Comment thread src/requireit.py Outdated
@mcflugen mcflugen force-pushed the mcflugen/add-requireit-module branch from f93f725 to 020ca8f Compare January 10, 2026 16:30
@mcflugen mcflugen merged commit 59673c5 into main Jan 10, 2026
@mcflugen mcflugen deleted the mcflugen/add-requireit-module branch January 10, 2026 16:32
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