Skip to content

Configure uv + misc fixes while setting up a new dev environment #2233

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

Merged
merged 7 commits into from
Apr 1, 2025

Conversation

michaeldwan
Copy link
Member

@michaeldwan michaeldwan commented Mar 28, 2025

I ran into some issues while setting up a new dev environment (macOS+vscode, but the improvements are universal) so I aggregated the fixes into this PR.

I broke them up into individual commits for easy review or cherry picking:

  1. I had troubles with python from asdf, but uv was nearly a drop in replacement.
  2. added scripts/setup for bootstrapping the environment
  3. remove deprecated ruff lint configs that were causing warnings
  4. go.mod and go.sum were getting rewritten anytime I ran go, these were probably accidentally left out of another commit, so I'm just adding them here to stop seeing them change

Closes #2167

These are no longer available and caused warnings in logs and in the editor. Remove 'em. More info: https://docs.astral.sh/ruff/rules/#flake8-2020-ytt
VSCode is using the new native ruff server by default and these config options are no longer valid. Removing to stop warnings.
Appears `go.{mod,sum}` had changes at some point that weren't committed, and running any go command fixed them. This just commits changes from `go mod tidy` so they stop cluttering my unstaged files.
@michaeldwan michaeldwan requested a review from a team March 28, 2025 23:17
This gives an option to use dev builds in this repo without conflicting with a system installed cog.
Copy link
Contributor

@meatballhat meatballhat left a comment

Choose a reason for hiding this comment

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

👏🏼 🎉 Thrilled to see uv here!

@michaeldwan michaeldwan merged commit 4ce6fb9 into main Apr 1, 2025
21 checks passed
@michaeldwan michaeldwan deleted the md/dev-env-fixes branch April 1, 2025 22:36
@zeke
Copy link
Member

zeke commented Apr 2, 2025

Nice!

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.

Use uv instead of pip/pyenv
3 participants