Skip to content

1 request moving from pip to uv and add dev dependency#40

Closed
tavallaie wants to merge 7 commits into
numfocus:mainfrom
tavallaie:1-request---moving-from-pip-to-uv-and-add-dev-dependency
Closed

1 request moving from pip to uv and add dev dependency#40
tavallaie wants to merge 7 commits into
numfocus:mainfrom
tavallaie:1-request---moving-from-pip-to-uv-and-add-dev-dependency

Conversation

@tavallaie
Copy link
Copy Markdown

Description

  • moving to uv from pip
  • remove unnecessary files
  • update readme

@tavallaie
Copy link
Copy Markdown
Author

#39 solved

Comment thread .pre-commit-config.yaml
Comment on lines +7 to +19
- id: ruff
types_or: [python, pyi]

args:
[
--fix,
--exclude,
"contrib/*,Older Experiments/,backend/data/,scripts/",
]
# Run the formatter.
- id: ruff-format
types_or: [python, pyi]
args: [--exclude, "contrib/*,Older Experiments/,backend/data/,scripts/"]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

As mentioned during the MOSS call earlier consider merging this work with the .pre-commit-config.yml found under the Older Experiments directory so as to not lose the configuration we've used up until recently.

Comment thread .pre-commit-config.yaml
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I really appreciate the focus on linting and formatting! Just the same, the number of changes applied in this PR are massive as a result of applying what looks like linting and formatting updates. This makes it difficult to discern what was changed due to linting or formatting and what was changed to help with uv environment development. Consider decoupling these ideas into distinct PR's.

You could keep this PR in place, dropping the linting/formatting changes, and focus on just the uv implementation. Separately, another PR could be used for linting changes to help isolate those changes from environment management. This would improve our ability as developers to understand when something breaks or changes behavior which PR it was associated with and as a result, where to look for a root cause + resolution.

From my perspective, PR's should be small and isolated to one specific focus to help keep the development moving towards common goals and decrease the complexity for both the developers and reviewers (i.e. larger changes are harder to contextualize).

Comment thread pyproject.toml
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Excited to see uv added to the project! Seeing this file added and the other environment files removed made me wonder: how do we know this will enable MOSS to work as we expect? We talked about this on the call today and I've added an issue to help describe what we might want to do prior to this PR being approved and merged. See #42 for more information.

Comment thread requirements.txt

# UUID Generation (Needed for DiscoveryChain ID) - Standard library 'uuid' used.

# --- ADDED FOR PHASE 2 API ---
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Consider retaining these comments within the pyproject.toml file, which allows for similar line-level comments.

@tavallaie
Copy link
Copy Markdown
Author

To make improvement I need to make it clearer and smaller to manage. So, I close this PR and start with better approach

@tavallaie tavallaie closed this May 16, 2025
@tavallaie tavallaie deleted the 1-request---moving-from-pip-to-uv-and-add-dev-dependency branch May 20, 2025 03:38
@jring-o
Copy link
Copy Markdown
Collaborator

jring-o commented May 21, 2025

Hey Ali, are you working on this? @vasilmax is also interested in implementing UV, and we don't want conflicting PRs/duplicated work. All yours if you're still planning to do this

@tavallaie
Copy link
Copy Markdown
Author

Max can take it. I can collaborate on his branch if needed.

@tavallaie
Copy link
Copy Markdown
Author

It is important to do it fast, and I am sick right now. It hard for me to do that.

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