Skip to content

Refina o projeto: CI, release com executável, README novo e correções - #1

Merged
guhttps merged 7 commits into
mainfrom
chore/refine-project
Nov 3, 2026
Merged

guhttps merged 7 commits into
mainfrom
chore/refine-project

Conversation

@guhttps

@guhttps guhttps commented Nov 3, 2026

Copy link
Copy Markdown
Owner

O que muda

Infraestrutura

  • CI (GitHub Actions): ruff + testes no Windows com Python 3.11, 3.12, 3.13 e 3.14 em todo push e PR.
  • Release automática: criar uma tag vX.Y.Z gera o executável com PyInstaller, roda os testes e publica a release com o .zip e as notas do CHANGELOG.md. A tag precisa bater com APP_VERSION.
  • Dependabot mensal para pip e GitHub Actions.
  • scripts/build.ps1 para gerar o .zip localmente; LoL_AI_Coach.spec versionado (sem UPX, para reduzir falso positivo de antivírus).
  • .gitattributes garante CRLF nos .bat.

Código

  • Bug corrigido: com a saída redirecionada (LoL_AI_Coach.exe > log.txt ou python main.py > log.txt), o Windows usava cp1252 e o primeiro emoji derrubava o coach com UnicodeEncodeError. Agora stdout/stderr são UTF-8 com buffer por linha. Teste de regressão incluído.
  • Overlay com tema escuro, leve transparência, barra de título escura e cor de status (verde em partida, âmbar aguardando, cinza fora).
  • Versão centralizada em config.APP_VERSION (3.2.0).
  • Lint (ruff) configurado e limpo.

Documentação

  • README reescrito: banner, badges, print do overlay, instalação por executável ou código-fonte, referência completa do .env, tabela de provedores (OpenAI/OpenRouter/Ollama), diagrama de arquitetura e solução de problemas.
  • CHANGELOG.md com as versões 3.1.0 e 3.2.0, CONTRIBUTING.md, formulários de issue e template de PR.

Como testei

  • python -m unittest discover -s tests — 44 testes passando (eram 42)
  • ruff check .
  • scripts/build.ps1 gera o .zip; o .exe abre, escolhe a personalidade e fica aguardando a partida
  • Partida real com o novo overlay

Depois do merge

Criar a tag v3.2.0 para publicar a primeira release com o executável.

🤖 Generated with Claude Code

guhttps and others added 7 commits November 3, 2026 02:25
- Add ruff config and fix its findings (import order, unused import,
  one-line compound statements)
- Keep the app version in config.APP_VERSION instead of hardcoded strings
- Give the overlay a dark, slightly transparent theme with a status color
  for in-game, waiting and offline states
- Add .gitattributes so .bat files always check out with CRLF

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Windows a redirected stdout (e.g. "> log.txt") uses cp1252, so the first
emoji in the startup messages raised UnicodeEncodeError and closed the coach.
Reconfigure stdout/stderr to UTF-8 with line buffering at startup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
scripts/build.ps1 builds dist/LoL_AI_Coach with the spec, copies the files
people need to edit (.env.example, player_profile.json) plus a short
LEIA-ME.txt, and zips it as LoL_AI_Coach-<version>-windows.zip.
UPX is disabled to reduce antivirus false positives.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ask DWM for the immersive dark title bar on Windows 10 20H1+ and 11 so the
window chrome matches the dark overlay. Other systems ignore it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- CI: ruff on Ubuntu and the test suite on Windows with Python 3.11-3.14
- Release: a vX.Y.Z tag checks it matches APP_VERSION, runs the tests,
  builds the Windows zip and publishes a GitHub release with the notes
  from CHANGELOG.md
- Dependabot for pip and GitHub Actions, grouped monthly

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- README: banner, badges, overlay screenshot, executable and source
  install paths, full .env reference, provider table, architecture
  diagram and troubleshooting
- Move the change notes from the README into CHANGELOG.md
- Add CONTRIBUTING.md, issue forms and a pull request template

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@guhttps
guhttps merged commit 888bd3a into main Nov 3, 2026
5 checks passed
@guhttps
guhttps deleted the chore/refine-project branch November 3, 2026 05:57
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.

1 participant