Repository navigation
Trava as versões das dependências com o uv - #39
Merged
Merged
Conversation
Adiciona o uv.lock, com a versão exata de todos os 67 pacotes, válido para Python 3.12 e 3.13. O CI instala com uv sync --locked, que falha se o lock estiver desatualizado em relação ao pyproject.toml, e o Dependabot passa a atualizar o lock. O pip-audit roda com --skip-editable, já que o próprio projeto não está no PyPI.
A action não publica uma tag móvel v10, só versões completas.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resumo
uv.lock, com a versão exata dos 67 pacotes, inclusive os indiretos. É um lock universal, válido para Python 3.12 e 3.13, as duas versões da matriz do CIactions/setup-python+pip install -e ".[dev]"viramastral-sh/setup-uv@v10+uv sync --locked --extra dev. O--lockedfalha se opyproject.tomlmudar sem o lock ser regeneradoUV_NO_SYNC=1no workflow: osuv runusam o ambiente já instalado pelouv sync, sem tentar ajustá-lopip-auditroda com--skip-editable: o ambiente do uv não tem pip, e o próprio projeto não está no PyPIpipvirauv, então os PRs de atualização passam a mexer nouv.lock. O auto-merge de patch/minor continua igualuv sync --extra dev, há um aviso para rodaruv lockao mudar dependências, e a árvore de pastas inclui ouv.lockTest plan
uv sync --locked --extra devem ambientes descartáveis com Python 3.12 e 3.13: os 30 testes unitários passam nos doisuv runcomUV_NO_SYNC=1:pytestemypyfuncionam com o ambiente já instaladouv run pip-audit --skip-editable: "No known vulnerabilities found", exit 0pyproject.toml):uv sync --lockedsai com código 1 (revertido)uv.lockcom LF, conforme o.gitattributesv10; a action ficou fixada emv10.2.0