Skip to content

ci: drop committed lockfile, keep mypy <2.1#135

Closed
FBumann wants to merge 1 commit into
mainfrom
revert/drop-lockfile
Closed

ci: drop committed lockfile, keep mypy <2.1#135
FBumann wants to merge 1 commit into
mainfrom
revert/drop-lockfile

Conversation

@FBumann

@FBumann FBumann commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Reverts the lockfile machinery added in #128 while keeping the actual fix.

A pure git revert of #128 would also drop mypy<2.1 and re-break the Type check job, so this is a targeted revert.

What changes

  • Untrack uv.lock and re-ignore it — CI resolves fresh against the pyproject.toml ranges again.
  • Drop --frozen from the uv sync steps in ci.yaml / docs.yaml.
  • Dependabot uvpip ecosystem (bumps pyproject constraints, not a lock). Kept monthly.

What stays

  • mypy<2.1 in the dev group — this is what unbroke type-check (mypy 2.1.0 errors on numpy's PEP 695 stub under python_version=3.11).

Rationale

The committed lock + --frozen were robustness against transitive drift, but for a library this small that's not worth the relock workflow and large lock diffs. If a transitive dep ever breaks CI, bound it in the dev group (or [tool.uv] constraint-dependencies) — dev-only, never ships downstream. Runtime deps remain loose ranges; nightly.yaml still floats --resolution lowest/highest.

Verified

uv sync --group dev (no frozen) + uv run mypy src/pytest_benchmem testsSuccess: no issues found in 25 source files.

🤖 Generated with Claude Code

Revert the lockfile machinery from #128 while keeping the actual fix.
The mypy<2.1 bound in pyproject is what unbroke the Type check job;
the committed uv.lock + --frozen CI were extra robustness against
transitive drift that isn't worth the relock workflow for a library
this size. CI resolves fresh against the pyproject ranges again, and
dependabot returns to the pip ecosystem (bumps pyproject, not a lock).

If a transitive dep ever breaks CI, bound it in the dev group (or via
[tool.uv] constraint-dependencies) — dev-only, never ships downstream.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@FBumann FBumann enabled auto-merge (squash) June 29, 2026 09:39
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 pytest-benchmem | 🛠️ Build #33352456 | 📁 Comparing eac710e against latest (3f48119)

  🔍 Preview build  

1 file changed
± compare-plot/index.html

@FBumann

FBumann commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

Closing — the revert proved the lockfile is doing real work. Dropping it re-breaks type-check: a fresh resolve pulls numpy 2.5.0, whose PEP 695 stubs mypy rejects under python_version=3.11 (even at mypy 2.0.0, so the mypy<2.1 bound alone isn't enough). The committed uv.lock pins numpy 2.4.6 and keeps CI green. Keeping #128's lockfile setup as-is.

@FBumann FBumann closed this Jun 29, 2026
auto-merge was automatically disabled June 29, 2026 09:46

Pull request was closed

@FBumann FBumann deleted the revert/drop-lockfile branch June 29, 2026 09:46
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