Skip to content

build: use uv as pkg manager - #41

Merged
Tohrusky merged 13 commits into
EutropicAI:mainfrom
TohruskyDev:main
Sep 22, 2025
Merged

build: use uv as pkg manager#41
Tohrusky merged 13 commits into
EutropicAI:mainfrom
TohruskyDev:main

Conversation

@Tohrusky

Copy link
Copy Markdown
Member

No description provided.

@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello @Tohrusky, 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!

This pull request implements a significant refactoring of the project's build and dependency management infrastructure. By adopting uv as the primary package manager and Hatchling as the build backend, the changes aim to enhance build performance, simplify dependency resolution, and standardize project configuration. This migration also includes updating various development tools to their latest versions, ensuring a more robust and efficient development workflow.

Highlights

  • Package Manager Migration: The project has transitioned from Poetry to uv for package management, streamlining dependency resolution and command execution across various development tasks.
  • Build System Update: The build backend has been switched from poetry-core to Hatchling, centralizing project metadata and build configurations within pyproject.toml.
  • Development Tool Upgrades: Several pre-commit hooks and development tools, including pre-commit-hooks, prettier, ruff, and mypy, have been updated to their latest versions for improved consistency and functionality.
  • Configuration Simplification: The poetry.toml file has been removed, and pyproject.toml has been refactored to consolidate project and tool configurations, enhancing maintainability.
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 by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description

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 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. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

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.

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.

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

Copy link
Copy Markdown

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 migrates the project from Poetry to uv for package management and hatch for building. The changes involve updating the pyproject.toml to the PEP 621 standard, replacing poetry commands with uv commands in the Makefile, and updating pre-commit hook versions.

The migration is a good step towards modern Python packaging. However, I've found several critical and high-severity issues in the new pyproject.toml configuration that need to be addressed:

  • An incorrect PyTorch index URL is used, which will cause dependency installation to fail.
  • The dependency groups are not defined using the standard [project.optional-dependencies] table.
  • A non-standard [tool.uv].default-groups key is used.
  • The platform markers for PyTorch dependencies only account for Windows, which will prevent GPU-accelerated builds on Linux.
  • There's also a minor issue with a redundant dependency and the use of an alpha version for a pre-commit hook.

Addressing these points will ensure the new packaging setup is correct, maintainable, and works across different platforms.

Comment thread pyproject.toml
Comment thread pyproject.toml
Comment thread pyproject.toml
Comment thread .pre-commit-config.yaml
Comment thread pyproject.toml
@Tohrusky
Tohrusky merged commit ce074c0 into EutropicAI:main Sep 22, 2025
13 checks passed
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.

1 participant