Skip to content

Release/3.1.0#198

Merged
fazedordecodigo merged 15 commits into
developfrom
release/3.1.0
Dec 5, 2025
Merged

Release/3.1.0#198
fazedordecodigo merged 15 commits into
developfrom
release/3.1.0

Conversation

@fazedordecodigo

Copy link
Copy Markdown
Owner

Descrição

Mudanças Propostas

Checklist de Revisão

  • Eu li o Contributing.md
  • Os testes foram adicionados ou atualizados para refletir as mudanças (se aplicável).
  • Foi adicionada uma entrada no changelog / Meu PR não necessita de uma nova entrada no changelog.
  • A documentação em português foi atualizada ou criada, se necessário.
  • Se feita a documentação, a atualização do arquivo em inglês.
  • Eu documentei as minhas mudanças no código, adicionando docstrings e comentários. Instruções
  • O código segue as diretrizes de estilo e padrões de codificação do projeto.
  • Todos os testes passam. Instruções
  • O Pull Request foi testado localmente. Instruções
  • Não há conflitos de mesclagem.

Comentários Adicionais (opcional)

Issue Relacionada

Closes #<numero_da_issue>

fazedordecodigo and others added 15 commits April 4, 2025 16:00
Ajusta a importação e a chamada da função de compilação de regex para melhorar a legibilidade e a consistência do código.
…retrizes e ferramentas

Implementa dois novos agentes com foco em boas práticas de programação e planejamento de testes. O Pythonic Guardian segue o Zen of Python e Clean Code, enquanto o QA Sentinel se concentra em análise estática e cobertura de testes.
…o DateTime

Inclui testes para verificar a funcionalidade de comparação de datas,
incluindo casos de datas válidas, iguais, inválidas e limites de intervalo.
Adiciona a função _to_date para garantir que comparações entre
instâncias de date e datetime não gerem TypeError. Atualiza os
testes para validar o comportamento esperado sem erros.
…ção de data

Ajusta a formatação das funções de teste para melhorar a legibilidade e a consistência do código.
…ção de data

Ajusta a formatação das funções de teste para seguir as convenções de estilo e melhorar a legibilidade.
…os testes

Atualiza os testes para garantir que as comparações entre tipos de data e datetime
considerem corretamente a informação de fuso horário, melhorando a precisão
das validações de data.
Copilot AI review requested due to automatic review settings December 5, 2025 23:38
@continue

continue Bot commented Dec 5, 2025

Copy link
Copy Markdown

Keep this PR in a mergeable state →

Learn more

All Green is an AI agent that automatically:

✅ Addresses code review comments

✅ Fixes failing CI checks

✅ Resolves merge conflicts

@fazedordecodigo fazedordecodigo merged commit f937195 into develop Dec 5, 2025
36 checks passed
@sonarqubecloud

sonarqubecloud Bot commented Dec 5, 2025

Copy link
Copy Markdown

@fazedordecodigo fazedordecodigo deleted the release/3.1.0 branch December 5, 2025 23:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This pull request implements version 3.1.0 of the PyFlunt library, introducing new validation contracts for dates/times, URLs, numeric values, and Brazilian documents (CPF/CNPJ). The main focus of the visible changes is on improving the DateTimeValidationContract to properly handle mixed date/datetime comparisons and adding comprehensive test coverage, along with new AI agent configurations for automated testing workflows.

Key changes:

  • Enhanced date/datetime validation with type normalization helper to prevent TypeError when comparing date and datetime objects
  • Comprehensive test suite for datetime validations covering edge cases and type mixing scenarios
  • Code formatting improvements and explicit import style for better maintainability

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/validations/test_datetime_validation_contract.py New comprehensive test suite (373 lines) covering all datetime validation methods with happy paths, boundary conditions, None handling, and date/datetime type mixing scenarios
flunt/validations/datetime_validation_contract.py Added _to_date() helper function for safe date/datetime normalization; refactored is_date_after, is_date_before, and is_date_between methods to use the helper for consistent type handling
flunt/validations/url_validation_contract.py Improved import style by explicitly importing compile and IGNORECASE from re module instead of importing re and using qualified names
samples/flunt_sample.py Code formatting adjustment to comply with line-length=79 Ruff configuration (joined multi-line logger.info call)
.gitignore Added .serena/cache/ directory to ignore list for AI agent tooling cache
.github/agents/qa-sentinel.agent.md New AI agent configuration for test planning and quality assurance workflows (contains invalid model identifier)
.github/agents/pythonic-guardian.agent.md New AI agent configuration for Python code implementation following PEP 20 and Clean Code principles (contains invalid model identifier)

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