Skip to content

Improve Windows installation scripts and documentation#16

Open
ademirrodrigo wants to merge 1 commit intomainfrom
codex/create-coletor-fiscal-v3.2-saas-ready-system-ofjefo
Open

Improve Windows installation scripts and documentation#16
ademirrodrigo wants to merge 1 commit intomainfrom
codex/create-coletor-fiscal-v3.2-saas-ready-system-ofjefo

Conversation

@ademirrodrigo
Copy link
Owner

Summary

  • harden the Windows helper batch files to detect Python, validate prerequisites, and surface clearer error handling during setup and recovery
  • expand the Windows installation section of the README with step-by-step guidance and environment variable customization tips

Testing

  • python -m compileall app web

https://chatgpt.com/codex/tasks/task_e_6900d155dee88329a267792bed0f790b

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +73 to +79
def coletar_nfe_distribuicao(session: Session, empresa: Empresa, nsu_inicial: str | None = None) -> List[Documento]:
"""Executa a consulta no serviço NFeDistribuicaoDFe."""
LOGGER.info("Iniciando coleta NFeDistribuicaoDFe para %s", empresa.cnpj)

# As linhas abaixo demonstram como a integração real deve ocorrer.
certificado, senha = carregar_certificado(empresa.cnpj, empresa.certificado_senha or "")

Choose a reason for hiding this comment

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

P1 Badge Guard certificate load when integration stubbed

Even though the NFe distribution integration is intentionally commented out, coletar_nfe_distribuicao still calls carregar_certificado before returning the placeholder warning. carregar_certificado raises FileNotFoundError whenever the expected .pfx file is absent, so a fresh installation without certificates will crash as soon as the user triggers a collection, despite the feature being disabled. The certificate lookup should be deferred or conditioned on the real web-service call being enabled.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments