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

Codebase refactor and deployment improvements #14

Merged
merged 21 commits into from
May 16, 2024
Merged

Conversation

benhid
Copy link
Member

@benhid benhid commented Mar 6, 2024

This PR introduces significant changes aimed at improving the codebase's maintainability and testing.

Below are some notable changes:

  1. I've updated the minimum required Python version specified in the pyproject.toml file. This change was necessary to ensure compatibility with the latest Python features.
  2. The original console entrypoint for the application has been removed. We're now leveraging Uvicorn directly to deploy our API. This decision comes after evaluating the simplicity and performance benefits of using Uvicorn as our ASGI server, providing us with more control and scalability options for our application's deployment.

With these refactors, we're now in a much better position to implement unit tests.

@benhid benhid requested a review from jfaldanam March 6, 2024 14:54
Copy link
Contributor

@jfaldanam jfaldanam left a comment

Choose a reason for hiding this comment

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

LGTM now

default=default_, # Set a default value to mark them as not required
description=v.description,
pattern=v.regex,
default=(... if param.required else param.default),
Copy link
Contributor

Choose a reason for hiding this comment

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

How does this work against PydanticUndefined? Is the elipsis equivalent? I have not been able to find documentation on this

@jfaldanam jfaldanam merged commit 9779f73 into master May 16, 2024
@jfaldanam jfaldanam deleted the feat/refactor branch June 17, 2024 14:06
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.

2 participants