Skip to content

Remove python-dotenv and simplify dockerfile building stage#8

Merged
RepoRover merged 3 commits intofeature/versioned-releasesfrom
refactor/dot-env
Aug 28, 2025
Merged

Remove python-dotenv and simplify dockerfile building stage#8
RepoRover merged 3 commits intofeature/versioned-releasesfrom
refactor/dot-env

Conversation

@Matheus-OAMK
Copy link
Contributor

No description provided.

- Removed python-dotenv dependency and lines utilizing it. The pydantic_settings managed the environment and should fail on missing dependencies.
- Refactiored the dockerfile to have a pinned version of UV for consistent builds.
- Simplified dockerfile by utilizing UV's prebuilt image
@Matheus-OAMK Matheus-OAMK self-assigned this Aug 28, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes the python-dotenv dependency and simplifies the Docker build process by using a pre-built uv image. The changes eliminate explicit environment variable loading from .env files while preserving pydantic-settings' built-in .env file support.

  • Removed python-dotenv dependency from pyproject.toml
  • Eliminated manual .env loading and BASE_URL validation in config.py
  • Simplified Dockerfile by using official uv Alpine image instead of manual installation

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
pyproject.toml Removes python-dotenv dependency
database_schema_spec/core/config.py Removes dotenv import, manual .env loading, and BASE_URL validation
Dockerfile Replaces manual uv installation with official uv image

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Matheus-OAMK Matheus-OAMK added chores Tasks related to internal project upkeep and improvements development This is software development internal Changes that affect the project's internal structure, tooling, or infrastructure, not visible to end to-fix This should be fixed labels Aug 28, 2025
Copy link
Contributor

@RepoRover RepoRover left a comment

Choose a reason for hiding this comment

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

Well done, looks promising! Let's see this thing fly

@RepoRover RepoRover merged commit b02025d into feature/versioned-releases Aug 28, 2025
5 checks passed
@RepoRover RepoRover deleted the refactor/dot-env branch August 28, 2025 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chores Tasks related to internal project upkeep and improvements development This is software development internal Changes that affect the project's internal structure, tooling, or infrastructure, not visible to end to-fix This should be fixed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants