organize slackbot into library#1160
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR restructures the Slackbot example into a standalone slackbot library, centralizes imports under the new package, and updates tooling and documentation to reference the library module.
- Register
slackbotas an optional dependency and UV workspace in the rootpyproject.toml - Update CLI invocations (Justfile, Dockerfile) and Pydantic usage to use
slackbotmodule paths - Adjust example project metadata and docs to reflect the new package name
Reviewed Changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| pyproject.toml | Added slackbot optional-dep and configured UV workspace |
| justfile | Updated run-slackbot target to use -m slackbot |
| examples/slackbot/src/slackbot/*.py | Changed all relative imports to slackbot.* |
| examples/slackbot/src/slackbot/api.py | Switched to model_validate and updated import paths |
| examples/slackbot/src/slackbot/main.py | Updated import and UV module reference |
| examples/slackbot/pyproject.toml | Added project metadata for the new slackbot package |
| examples/slackbot/README.md | Renamed entry point to __main__.py |
| examples/slackbot/Dockerfile.slackbot | Bumped base image, updated UV commands |
| examples/slackbot/CLAUDE.md | Updated start command in docs |
Comments suppressed due to low confidence (2)
examples/slackbot/CLAUDE.md:40
- The module path
examples.slackbotdoes not match the library entry point. Update this touv run -m slackbotto align with the package namespace.
uv run -m examples.slackbot
examples/slackbot/pyproject.toml:63
- The UV source is labeled
marvin, but the package is namedslackbot. Rename the key toslackbotso the UV workspace can locate the correct module.
marvin = { workspace = true }
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.
No description provided.