Skip to content

feat: uv#1983

Merged
joshuarli merged 4 commits into
mainfrom
uv
Mar 16, 2026
Merged

feat: uv#1983
joshuarli merged 4 commits into
mainfrom
uv

Conversation

@joshuarli

Copy link
Copy Markdown
Member

currently you need to manually make a python virtualenv then install packaging==21.3 and tox - now just uv sync

also:

  • Replace black, flake8, pyupgrade, reorder-python-imports with ruff
  • Replace tox with uv for test running
  • Replace pip/requirements.txt with uv sync in docker and CI
  • Move all config to pyproject.toml (mypy, coverage, ruff)

- Replace black, flake8, pyupgrade, reorder-python-imports with ruff
- Replace tox with uv for test running
- Replace pip/requirements.txt with uv sync in docker and CI
- Move all config to pyproject.toml (mypy, coverage, ruff)
- Delete setup.cfg, tox.ini, docker/requirements.{txt,in}

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@joshuarli joshuarli requested a review from hubertdeng123 March 16, 2026 21:11
@joshuarli joshuarli marked this pull request as ready for review March 16, 2026 21:12
Comment thread .github/workflows/build.yml
joshuarli and others added 3 commits March 16, 2026 14:17
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@joshuarli joshuarli merged commit cca8c95 into main Mar 16, 2026
18 of 19 checks passed
@joshuarli joshuarli deleted the uv branch March 16, 2026 21:23

@cursor cursor 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.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Comment thread .pre-commit-config.yaml
rev: v3.12.0
hooks:
- id: reorder-python-imports
args: [--py311-plus, --add-import, 'from __future__ import annotations']

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pre-commit hook uses wrong language setting

Low Severity

The format-packages-ini hook uses language: python while its entry is .venv/bin/python -m format_ini, a hardcoded path that bypasses any isolated environment pre-commit creates. All the other local hooks (ruff-check, ruff-format, mypy) correctly use language: system. Using language: python causes pre-commit to create an unnecessary isolated virtualenv that is never used for execution, adding latency to every pre-commit run.

Fix in Cursor Fix in Web

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.

2 participants