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

uv 💜 #4

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

uv 💜 #4

wants to merge 8 commits into from

Conversation

soustruh
Copy link
Contributor

@soustruh soustruh commented Mar 5, 2025

No description provided.

davidesner and others added 8 commits March 4, 2025 23:34
3.10 is currently the latest version in the base image, this shall be fixed later on 🤞
use just a single python env so that all image packages, this component's packages and user packages can be imported flawlessly
@soustruh soustruh requested review from Copilot and kudj March 5, 2025 08:27
Copy link

@Copilot 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.

PR Overview

This PR introduces configuration and execution changes to incorporate the "uv" command for running lint and test processes, as well as updating project dependency configurations and docker environment variable settings.

  • Add new project configuration (pyproject.toml).
  • Update GitHub Actions workflow to use "uv run --active" for linting and testing.
  • Adjust docker-compose environment variable and update component code formatting and package installation commands.

Reviewed Changes

File Description
pyproject.toml Introduces project metadata and dependencies
.github/workflows/push.yml Modifies docker run commands to use "uv run --active"
docker-compose.yml Updates environment variable for data directory
src/component.py Refactors string quoting, logging messages, and changes package installation to use "uv pip install"

Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

src/component.py:98

  • The package installation command now uses 'uv pip install'. Ensure that the 'uv' command is available in all target environments, or provide a fallback to the standard pip invocation if not.
                "uv",

@@ -40,41 +42,40 @@ def run(self):
parameters = self.configuration.parameters

self._set_init_logging_handler()
script_path = os.path.join(self.data_folder_path, 'script.py')
logging.info(sys.executable)
Copy link
Preview

Copilot AI Mar 5, 2025

Choose a reason for hiding this comment

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

The logging of sys.executable appears to be a leftover debug statement; consider removing it or wrapping it in a conditional to avoid unintended output in production.

Suggested change
logging.info(sys.executable)
if logging.getLogger().getEffectiveLevel() == logging.DEBUG:
logging.debug(sys.executable)

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
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