Merged
Conversation
I'm just going with the flow Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
I'm just going with the flow Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
I'm just going with the flow Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Just keeping things mean and clean
Not sure why codex is unable to handle this shit
76aef1e to
da2a999
Compare
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces an upload endpoint with validation along with additional health check functionality. Key changes include:
- Adding the /upload endpoint to ensure file type, non-emptiness, and size limits.
- Implementing a new /health endpoint using fastapi-health.
- Updating tests, documentation, and CI workflows to support the new endpoints and validation rules.
Reviewed Changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/test_main.py | Added tests for health check and new upload endpoint behavior. |
| tests/conftest.py | Configured sys.path for app module imports. |
| pyproject.toml | Added fastapi-health dependency and new dev tooling (black, ruff). |
| app/main.py | Added /health and /upload endpoints; updated /pdf/pages endpoint logic. |
| README.md | Updated API documentation to reflect new endpoints. |
| .github/workflows/ci.yml | Updated installation and linting steps for new dependencies. |
Following what copilot thinks Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.
Summary
/uploadendpoint that validates file types and checks for empty filesTesting
uv run python -m pytest -qhttps://chatgpt.com/codex/tasks/task_e_684987cc0db08320881bf0ee8183a43e