Skip to content

Conversation

@fmind
Copy link
Owner

@fmind fmind commented Mar 4, 2025

No description provided.

@fmind fmind self-assigned this Mar 4, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Hello @fmind, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

Summary of Changes

This pull request upgrades the project to version 4.0.0. It includes several updates, such as switching from pyinvoke to just for task automation, bumping the Python version to 3.13, updating various dependencies, and improving the project's documentation and CI/CD workflows. A mindmap of the package has also been added to the README.

Highlights

  • Task Automation: Switched from pyinvoke to just for managing project tasks, providing a more efficient and user-friendly task execution.
  • Dependency Updates: Upgraded Python version to 3.13 and updated key dependencies like mlflow, ruff, pydantic, and others to their latest versions, ensuring compatibility and access to new features and security patches.
  • CI/CD Improvements: Bumped GitHub Actions versions and refactored check tasks for easier debugging, enhancing the project's continuous integration and deployment processes.
  • Documentation: Added a mindmap of the package to the README, providing a visual overview of the project's structure and components.
  • Code Modernization: Modernized the codebase by removing invoke and using just for task management, updating pre-commit hooks, and updating the python version.

Changelog

Click here to see the changelog
  • .cruft.json
    • Updated the commit hash to 2ce51abb4333d594baee46ce590ead4e4cd76142.
    • Bumped the version to 4.0.0.
    • Updated python_version to 3.13.
    • Updated mlflow_version to 2.20.3.
  • .github/actions/setup/action.yml
    • Updated astral-sh/setup-uv action to v5.
  • .github/workflows/check.yml
    • Replaced invoke commands with just commands for check tasks.
    • Renamed checks group to check.
  • .github/workflows/publish.yml
    • Replaced invoke commands with just commands for docs and packages tasks.
    • Renamed docs group to doc.
  • .pre-commit-config.yaml
    • Updated default_language_version for python to 3.13.
    • Updated ruff-pre-commit to v0.9.9.
    • Added bandit pre-commit hook.
    • Updated commitizen to v4.4.1.
  • .python-version
    • Updated python version to 3.13.
  • CHANGELOG.md
    • Updated version to 4.0.0 with release date 2025-03-04.
    • Switched from pyinvoke to just.
    • Bumped GitHub action versions.
    • Bumped python and package version.
    • Added mindmap of the package.
    • Fixed dtype backend for datasets.
    • Updated to new cruft template version.
    • Removed older changelog entries.
  • Dockerfile
    • Updated base image to ghcr.io/astral-sh/uv:python3.13-bookworm.
  • README.md
    • Added mindmap image.
    • Replaced PyInvoke with Just in the automation section.
    • Replaced Pyenv with Uv in the programming section.
    • Updated prerequisites to Python 3.13.
    • Updated task execution examples to use just.
    • Replaced task list with just toml syntax.
  • invoke.yaml
    • Removed the file as invoke is no longer used.
  • justfile
    • Added a new file to define just tasks.
  • mlops-python-package.code-workspace
    • Removed dchanco.vsc-invoke extension recommendation.
  • pyproject.toml
    • Updated version to 4.0.0.
    • Updated requires-python to 3.13.
    • Updated dependencies versions.
    • Replaced checks group with check.
    • Replaced commits group with commit.
    • Replaced docs group with doc.
    • Replaced notebooks group with notebook.
    • Updated python_version in tool.mypy to 3.13.
    • Updated target-version in tool.ruff to py313.
  • python_env.yaml
    • Updated python version to 3.13.
    • Updated dependencies versions.
  • requirements.txt
    • Updated dependencies versions.
  • src/bikes/core/models.py
    • Added import for pandas
    • Added type checking for schemas
  • src/bikes/io/datasets.py
    • Fixed dtype backend for datasets.
  • src/bikes/io/services.py
    • Replaced warnings.warn with print for unsupported notifications.
  • tasks/init.py
    • Removed the file as invoke is no longer used.
  • tasks/check.just
    • Added a new file to define just check tasks.
  • tasks/checks.py
    • Removed the file as invoke is no longer used.
  • tasks/clean.just
    • Added a new file to define just clean tasks.
  • tasks/cleans.py
    • Removed the file as invoke is no longer used.
  • tasks/commit.just
    • Added a new file to define just commit tasks.
  • tasks/commits.py
    • Removed the file as invoke is no longer used.
  • tasks/containers.py
    • Removed the file as invoke is no longer used.
  • tasks/doc.just
    • Added a new file to define just doc tasks.
  • tasks/docker.just
    • Added a new file to define just docker tasks.
  • tasks/docs.py
    • Removed the file as invoke is no longer used.
  • tasks/format.just
    • Added a new file to define just format tasks.
  • tasks/formats.py
    • Removed the file as invoke is no longer used.
  • tasks/install.just
    • Added a new file to define just install tasks.
  • tasks/installs.py
    • Removed the file as invoke is no longer used.
  • tasks/mlflow.just
    • Added a new file to define just mlflow tasks.
  • tasks/mlflow.py
    • Removed the file as invoke is no longer used.
  • tasks/package.just
    • Added a new file to define just package tasks.
  • tasks/packages.py
    • Removed the file as invoke is no longer used.
  • tasks/project.just
    • Added a new file to define just project tasks.
  • tasks/projects.py
    • Removed the file as invoke is no longer used.
  • tests/core/test_metrics.py
    • Improved test descriptions.
  • tests/core/test_models.py
    • Improved test descriptions.
  • tests/io/test_datasets.py
    • Improved test descriptions.
  • tests/io/test_registries.py
    • Improved test descriptions.
  • tests/io/test_services.py
    • Improved test descriptions.
    • Added test for unsupported notifications.
  • tests/jobs/test_evaluations.py
    • Improved test descriptions.
  • tests/jobs/test_explanations.py
    • Improved test descriptions.
  • tests/jobs/test_inference.py
    • Improved test descriptions.
  • tests/jobs/test_promotion.py
    • Improved test descriptions.
  • tests/jobs/test_training.py
    • Improved test descriptions.
  • tests/utils/test_searchers.py
    • Improved test descriptions.
  • tests/utils/test_signers.py
    • Improved test descriptions.
  • tests/utils/test_splitters.py
    • Improved test descriptions.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.


Did you know?

Python 3.13 introduces several performance improvements, including a new free-list implementation for strings and more efficient handling of certain operations, making it faster than previous versions.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the project to use Python 3.13, uv for package management, and just for task automation. It also updates various dependencies and configurations. Overall, the changes seem well-organized and consistent.

Merge Readiness

The pull request appears to be in good shape for merging. The updates to dependencies, Python version, and task automation seem well-managed. I am unable to directly approve the pull request, and users should have others review and approve this code before merging.

@fmind fmind merged commit 7073a6a into main Mar 4, 2025
1 check passed
@fmind fmind deleted the v4.0.0 branch March 4, 2025 21:15
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