Skip to content

Conversation

@cl3m0
Copy link
Contributor

@cl3m0 cl3m0 commented Apr 15, 2025

This pull request includes several changes to the project configuration and build setup, focusing on improving the development workflow and updating dependencies. The most important changes include updates to the Docker and Kubernetes configurations, the introduction of Tilt for local development, and the addition of a GitHub Actions workflow for running tests.

Docker and Kubernetes Configuration Updates:

  • .dockerignore: Updated to ignore all files except for specific project-related files and directories.
  • k8s/Dockerfile and k8s/Dockerfile.dev: Updated to use uv for managing dependencies and virtual environments, and to build the project in multiple stages. [1] [2]

Development Workflow Improvements:

  • .github/workflows/pytest.yml: Added a GitHub Actions workflow to run Python tests on pull requests, including setting up a PostgreSQL service.
  • Tiltfile: Introduced a Tilt configuration for managing the Kubernetes resources and local development environment.

Dependency and Configuration Updates:

  • .flake8: Added a configuration file for Flake8 to ignore specific rules and set maximum line length and complexity.
  • .python-version: Updated the Python version to 3.12.9.
  • k8s/.nvmrc: Updated the Node.js version to v20.
  • Updated several python dependencies and moved their definition to pyproject.toml instead of using requrements-files.

Documentation Updates:

  • README.md: Updated to include instructions for using Tilt for local development and managing project dependencies with uv. [1] [2]

Removal of Deprecated Kubernetes Configurations:

Tiltfile Outdated
docker_build(
"licensing",
".",
dockerfile_contents="FROM 676249682729.dkr.ecr.eu-central-1.amazonaws.com/licensing:{}".format(
Copy link

Choose a reason for hiding this comment

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

I am wondering, if this an opensource project, how/if this is accessible... 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed build_remote just before your review

Copy link

Choose a reason for hiding this comment

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

What is the difference of Dockerfile and Dockerfile.dev? Tilt and GHA are using the latter... 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

true... the only difference was the --log-config uvicorn_disable_logging.json parameter for uvivorn. renamed Dockerfile.devto Dockerfile and kept that one...

firstname: str
lastname: str
phone: str | None
phone: Optional[str] = None
Copy link

Choose a reason for hiding this comment

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

I had the impression that | is the new ergonomic way of defining Optional (without the need for this import)

See also: https://stackoverflow.com/questions/69440494/python-3-10-optionaltype-or-type-none

image

@cl3m0 cl3m0 force-pushed the revive-project branch 2 times, most recently from 3b566f3 to 1b8be52 Compare April 16, 2025 14:37
@diefans diefans marked this pull request as ready for review April 17, 2025 08:38
@cl3m0 cl3m0 merged commit 4e02f23 into main Apr 17, 2025
1 check passed
@cl3m0 cl3m0 deleted the revive-project branch April 17, 2025 10:02
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.

3 participants