Skip to content

Conversation

@castroofelipee
Copy link
Member

@castroofelipee castroofelipee commented Aug 17, 2025

What?

This merge request introduces a set of validators and utility functions to improve data handling and consistency across the project. Additionally, it includes unit tests (pytest) to ensure reliability and correctness.

Implemented Features

  • Validators

    • is_valid_email(email: str) -> bool
    • is_valid_password(password: str) -> bool
    • is_valid_domain(domain: str) -> bool
    • is_valid_date(date_str: str) -> bool
    • is_positive_number(value: Any) -> bool
  • Utils

    • hash_password(password: str) -> str
    • verify_password(password: str, hashed: str) -> bool
    • generate_uuid() -> str
    • get_current_timestamp() -> str
    • slugify(text: str) -> str

Benefits

  • Improved input validation and data integrity.
  • Increased code reusability through utility functions.
  • Stronger test coverage to prevent regressions.
  • Aligned with project’s security and reliability goals.

Issue

closes #6

@castroofelipee castroofelipee self-assigned this Aug 17, 2025
@castroofelipee castroofelipee added the enhancement New feature or request label Aug 17, 2025
Copy link
Contributor

@peterstan077 peterstan077 left a comment

Choose a reason for hiding this comment

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

I left some comments here, i think is import see then and considering apply. But none of then its blocking

@castroofelipee castroofelipee merged commit 11c3802 into master Aug 17, 2025
2 checks passed
@castroofelipee castroofelipee deleted the type-error branch August 17, 2025 14:24
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 print + SystemExit with Rich Error Handling

3 participants