Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-49120: Update Ook project infrastructure #173

Merged
merged 12 commits into from
Feb 25, 2025
Merged

Conversation

jonathansick
Copy link
Member

Many small changes to upgrade Ook in preparation for new development.

  • Adopt Faststream 0.5, dropping an earlier pin on Faststream 0.4.
  • Adopt UV in the Docker build.

nox -s update-deps
ruff now provides both formatting and linting
New ruff rules, and also sorting for __all__.
Previously we pinned to FastStream < 0.5, but now we're accepting the
current version of FastStream. Key changes are:

- Modules containing consumer handlers can't use `from __future__ import
  annotations` because FastStream's AsyncApi generator can't resolve the
  handler's Pydantic API.
- In the consumer context, there's a change in typing of raw_message on
  a KafkaMessage.
- Typing for the Publisher changed. It is now a AsyncAPIDefaultPublisher
This improves editor DX for the file.
jonathansick added a commit to lsst-sqre/phalanx that referenced this pull request Feb 25, 2025
@jonathansick jonathansick merged commit 8dc65ea into main Feb 25, 2025
4 checks passed
@jonathansick jonathansick deleted the tickets/DM-49120 branch February 25, 2025 16:25
jonathansick added a commit to lsst-sqre/phalanx that referenced this pull request Feb 25, 2025
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