Skip to content

chore: format and migrate to uv - #25

Merged
dsun0720 merged 1 commit into
masterfrom
chore/migrate-to-uv
Nov 20, 2026
Merged

dsun0720 merged 1 commit into
masterfrom
chore/migrate-to-uv

Conversation

@dsun0720

@dsun0720 dsun0720 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor
  1. format,linter check and migrate to uv
  2. DO NOT publish this PR

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge, with no actionable issues found.

Summary

Moves dependency management and packaging to uv, adds Ruff and pre-commit checks, and formats the Python code.

  • The SDK package is built with uv and published from checked distributions.
  • Developers and CI use uv and Ruff for SDK checks.
  • The SDK source, helper scripts, and tests use consistent formatting.

Reviews (1) · Last reviewed commit: "chore:format and migrate to uv" · Reviewed by Greptile

Summary by CodeRabbit

  • Build & Release
    • Updated packaging and publishing workflows to build, verify, and publish distributions through a staged release process.
    • Added Python 3.14 wheel smoke testing and refreshed automated quality checks.
  • Development
    • Updated setup guidance for installing, testing, formatting, and building the SDK.
    • Added pre-commit checks for linting, formatting, and tests.
  • Tests
    • Expanded coverage for insights settings and evaluation event behavior.

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The project moves package metadata and dependency configuration to pyproject.toml. CI and release workflows adopt uv, and quality checks use Ruff. SDK code and tests receive formatting updates, with additional insights-event test coverage. The README and review instructions describe the updated commands and release process.

Changes: SDK packaging and developer workflows

Layer / File(s) Summary
Package metadata and distribution checks
pyproject.toml, setup.py, requirements.txt, dev-requirements.txt, release/package.json, MANIFEST.in, scripts/wheel_smoke.py
pyproject.toml defines project metadata, dependencies, build settings, and Ruff configuration. The legacy packaging and requirements files are removed. The wheel check accepts the required urllib3 specifiers in either order.
SDK source formatting
fbclient/*.py, fbclient/utils/*.py
SDK modules are reformatted. The summaries report no behavior or public-signature changes; the evaluator also adds a VariationSplittingAlgorithm import.
Validation scripts and test updates
scripts/live_integration_check.py, scripts/resource_audit.py, tests/*
Validation scripts and most tests are reformatted. Insights-enabled tests add checks for settings, evaluation results, event eligibility, patch and snapshot behavior, and shutdown delivery.
CI and local quality checks
.github/workflows/code-quality.yaml, .pre-commit-config.yaml, .flake8, .gitignore
CI uses uv for dependency setup, tests, resource audits, builds, and wheel checks. Linux lint and format checks use Ruff. Local hooks run Ruff and pytest through uv.
Build and publish workflow
.github/workflows/release.yaml
The release workflow separates distribution building and verification from deployment. Deployment downloads the verified artifact, creates a GitHub Release, and publishes to PyPI.
Installation and development documentation
README.md, docs/REVIEW.md
The documentation describes uv commands, development checks, pre-commit setup, release preparation, and publishing approval.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Other

Sequence Diagram(s)

sequenceDiagram
  participant Build as Build job
  participant Artifact as Uploaded distributions
  participant Deploy as Deploy job
  participant GitHub as GitHub Release
  participant PyPI
  Build->>Artifact: Upload verified wheel and source archive
  Artifact->>Deploy: Download distributions
  Deploy->>GitHub: Create release using build version
  Deploy->>PyPI: Publish distributions with uv
Loading

Suggested reviewers: lopezm1, wujiayi0307

Merge Risk: Minimal · up to 0945d

This change moves packaging and CI to uv and Ruff and reformats the SDK code, with no behavior changes found. The release job is gated by the py-production environment's required reviewers, so merging does not publish without approval. No merge-blocking risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "chore: format and migrate to uv" matches the main changes in the changeset. The raw summary shows broad reformatting across the fbclient package, tests, and scripts, and a migration from se…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "chore: format and migrate to uv" matches the main changes in the changeset. The raw summary shows broad reformatting across the fbclient package, tests, and scripts, and a migration from setuptools/requirements files to uv_build and uv commands in pyproject.toml, the workflows, the README, and the pre-commit config. The title names both the formatting work and the tooling migration, which are the two main aims in the PR objectives. It is concise and follows conventional commit style.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ba272300-c8cc-46cb-8ac2-a29084796ed5
Commits

Reviewing files that changed from the base of the PR and between f1def4b and 0945d61.

Files ignored due to path filters: 1

  • uv.lock is excluded by !**/*.lock
Files selected for processing: 46

  • .flake8
  • .github/workflows/code-quality.yaml
  • .github/workflows/release.yaml
  • .gitignore
  • .pre-commit-config.yaml
  • MANIFEST.in
  • README.md
  • dev-requirements.txt
  • docs/REVIEW.md
  • fbclient/__init__.py
  • fbclient/category.py
  • fbclient/client.py
  • fbclient/common_types.py
  • fbclient/config.py
  • fbclient/data_storage.py
  • fbclient/evaluator.py
  • fbclient/event_processor.py
  • fbclient/event_types.py
  • fbclient/flag_change_notification.py
  • fbclient/interfaces.py
  • fbclient/notice_broadcaster.py
  • fbclient/status.py
  • fbclient/status_types.py
  • fbclient/streaming.py
  • fbclient/update_processor.py
  • fbclient/utils/__init__.py
  • fbclient/utils/exponential_backoff_jitter_strategy.py
  • fbclient/utils/http_client.py
  • fbclient/utils/repeatable_task.py
  • fbclient/utils/rwlock.py
  • fbclient/utils/variation_splitting_algorithm.py
  • pyproject.toml
  • release/package.json
  • requirements.txt
  • scripts/live_integration_check.py
  • scripts/resource_audit.py
  • scripts/wheel_smoke.py
  • setup.py
  • tests/test_data_storage.py
  • tests/test_data_update_status_provider.py
  • tests/test_evaluator.py
  • tests/test_event_processor.py
  • tests/test_fbclient.py
  • tests/test_flag_change_notification.py
  • tests/test_insights_enabled.py
  • tests/test_runtime_safety.py
Files with no reviewable changes: 6

  • .flake8
  • MANIFEST.in
  • dev-requirements.txt
  • release/package.json
  • requirements.txt
  • setup.py

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@dsun0720
dsun0720 merged commit 9aa260f into master Nov 20, 2026
13 checks passed
@dsun0720
dsun0720 deleted the chore/migrate-to-uv branch November 20, 2026 13:38
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