Skip to content

build: support FOCA 0.22 - #62

Merged
uniqueg merged 1 commit into
devfrom
build/foca-0.22
Nov 9, 2026
Merged

uniqueg merged 1 commit into
devfrom
build/foca-0.22

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Closes #61

Summary

  • Raise the cap to foca>=0.18.0,<0.23 on all plugins, the template and the meta distribution; update uv.lock to FOCA 0.22.0 (only FOCA changes); add 0.22.0 to the CI matrix.
  • READMEs, docs/writing-plugins.md and changelogs (under ## Unreleased) name the new range.
  • No version changes, tags or releases. proTES needs this commit to move to FOCA 0.22.0 (it pins the plugins at a commit of dev).

Light lane: only dependency ranges, the lock, docs, changelogs and the CI matrix change, with no plugin source and no change to secrets, permissions or the release workflow (same scope as #56).

How it was verified

Locally with FOCA 0.22.0 from the lock (Python 3.13):

  • All three plugins: ruff check, ruff format, ast-grep, mypy, pytest at 100% coverage (15, 24 and 141 tests). No deprecation warnings from FOCA; the only warnings are Connexion 2's and FOCA's imports of deprecated jsonschema names, as before.
  • python -m scripts.checks check: passes. Tests of the scripts: 139 passed, 100% coverage.
  • pre-commit run --all-files: all hooks pass.
  • Not run locally: mkdocs build --strict (one changed sentence) and the other Python and FOCA combinations; CI runs them.

Open questions

None.

🤖 Generated with Claude Code

Summary by Sourcery

Support FOCA 0.22 across the plugin ecosystem while preserving compatibility with earlier supported releases.

Enhancements:

  • Extend all plugins, the template, and the meta distribution to support FOCA 0.22 with updated dependency bounds.
  • Refresh the locked FOCA version and update user-facing compatibility documentation and changelogs.

CI:

  • Add FOCA 0.22.0 to the CI test matrix.

Raise the cap to foca>=0.18.0,<0.23 on all plugins, the template and
the meta distribution, lock FOCA 0.22.0 and add it to the CI matrix.
READMEs, docs and changelogs name the new range. No releases.

Closes #61

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Nov 9, 2026

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Raise the supported FOCA version cap across the meta distribution and plugins, and add FOCA 0.22.0 to the CI test matrix.

  • .github/workflows/ci.yml L151, L165, L177-178
  • meta/pyproject.toml L34
  • plugins/generic/example/noop/pyproject.toml L49-51
  • plugins/generic/routing/random/pyproject.toml L40-42
  • plugins/tes/routing/distance/pyproject.toml L40-42

Documentation

Update the user-facing FOCA support ranges and plugin-development guidance to include 0.22.

  • README.md L43
  • docs/writing-plugins.md L143
  • plugins/generic/example/noop/README.md L20
  • plugins/generic/routing/random/README.md L19
  • plugins/tes/routing/distance/README.md L22

Record FOCA 0.22 support in the unreleased changelogs for the meta distribution and published plugins.

  • meta/CHANGELOG.md L15-16
  • plugins/generic/routing/random/CHANGELOG.md L14-15
  • plugins/tes/routing/distance/CHANGELOG.md L14-15

Lock files and vendored code

Update the lockfile for FOCA 0.22.0 and its resulting dependency resolution.

  • uv.lock L1100-1203 (6 small edits)

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 foca-plugins | 🛠️ Build #35748022 | 📁 Comparing 92e6a82 against latest (7548c65)

  🔍 Preview build  

2 files changed
± index.html
± writing-plugins/index.html

@codecov

codecov Bot commented Nov 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (8c5e0c2) to head (92e6a82).
⚠️ Report is 1 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff            @@
##               dev       #62   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            6         6           
  Lines          553       553           
  Branches        71        71           
=========================================
  Hits           553       553           
Flag Coverage Δ
foca-plugin-generic-example-noop 100.00% <ø> (ø)
foca-plugin-generic-routing-random 100.00% <ø> (ø)
foca-plugin-tes-routing-distance 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@uniqueg
uniqueg marked this pull request as ready for review November 9, 2026 08:21

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="meta/pyproject.toml" line_range="34" />
<code_context>
 # The FOCA versions that the train was tested with; set in the release pull
 # request
-dependencies = ["foca>=0.18.0,<0.22"]
+dependencies = ["foca>=0.18.0,<0.23"]

 # Extras per group (`<group>`) and subgroup (`<group>-<subgroup>`), plus
</code_context>
<issue_to_address>
**Meta extras reject FOCA 0.22**

When a user installs a meta extra while requiring FOCA 0.22, the `generic`, `tes`, and `experimental` extras still pin plugin version `0.1.2`, whose released metadata predates FOCA 0.22 support. Installing one of these extras with FOCA 0.22 therefore fails dependency resolution, despite the meta distribution's expanded range.

Before releasing the meta distribution with this range, pin plugin releases whose published metadata includes FOCA 0.22 support.
</issue_to_address>

Linked issues

#61 build: support FOCA 0.22 · 4 of 4 met

# Requirement Status Notes
1 Raise the cap to <0.23 on all packages ✅ Met The meta package, all three plugins, and the example template use foca>=0.18.0,<0.23.
2 Update uv.lock ✅ Met The lockfile resolves FOCA to 0.22.0 and records the updated <0.23 specifiers.
3 Add FOCA 0.22.0 to the CI matrix ✅ Met The matrix includes 0.22.0 with an exact foca==0.22.0 specifier.
4 No plugin or meta release here ✅ Met The changes update dependency bounds and documentation without changing package versions or adding release changes.

Sourcery assessment

Approval pending. 1 finding to address first.

Blocking findings: meta/pyproject.toml:34


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread meta/pyproject.toml Resolved
@uniqueg
uniqueg merged commit 7a08e7f into dev Nov 9, 2026
193 checks passed
@uniqueg
uniqueg deleted the build/foca-0.22 branch November 9, 2026 09:58
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.

build: support FOCA 0.22

1 participant