-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: main
Are you sure you want to change the base?
uv 💜 #4
Conversation
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
There was a problem hiding this 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) |
There was a problem hiding this comment.
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.
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.
No description provided.