Skip to content

Add Ruff and update uv - #76

Merged
r-thomson merged 4 commits into
MedShift:masterfrom
r-thomson:ruff
Aug 18, 2026
Merged

r-thomson merged 4 commits into
MedShift:masterfrom
r-thomson:ruff

Conversation

@r-thomson

Copy link
Copy Markdown
Collaborator

Adds Ruff as a formatter and linter. Also updated the expected uv version to the latest.

The linter config is pretty much the default, with the exception of disabling F401 for __init__.py.

Closes SHIP-966

@r-thomson
r-thomson requested review from a team, AndriiHrimov and alhadad-nixs August 17, 2026 19:49
@r-thomson
r-thomson marked this pull request as ready for review August 17, 2026 19:49
Copilot AI balanced review requested due to automatic review settings August 17, 2026 19:49

Copilot AI 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.

Pull request overview

Adds Ruff linting and formatting while updating uv tooling and CI coverage.

Changes:

  • Adds Ruff configuration and reformats Python sources and tests.
  • Adds static checks and Python 3.14 to CI.
  • Updates uv, lockfile, and license metadata.

Reviewed changes

Copilot reviewed 24 out of 25 changed files in this pull request and generated no comments.

Show a summary per file
File Description
uv.lock Locks Ruff and updated dependencies.
pyproject.toml Configures Ruff and updates build metadata.
.github/workflows/python-tests.yml Removes the superseded test workflow.
.github/workflows/python-checks.yml Adds tests, linting, and formatting checks.
.git-blame-ignore-revs Excludes the formatting commit from blame.
src/bigc/api.py Applies Ruff formatting.
src/bigc/api_client.py Formats code and modernizes imports.
src/bigc/exceptions.py Formats code and sorts exports.
src/bigc/data/order_status.py Applies Ruff formatting.
src/bigc/resources/carts_v3.py Applies Ruff formatting.
src/bigc/resources/categories_v3.py Formats code and modernizes imports.
src/bigc/resources/checkouts_v3.py Applies Ruff formatting.
src/bigc/resources/currencies_v2.py Formats code and modernizes imports.
src/bigc/resources/customer_groups_v2.py Formats code and modernizes imports.
src/bigc/resources/customers_v3.py Formats code and modernizes imports.
src/bigc/resources/orders_v2.py Formats code and modernizes imports.
src/bigc/resources/orders_v3.py Formats code and modernizes imports.
src/bigc/resources/pricing_v3.py Formats code and modernizes imports.
src/bigc/resources/product_variants_v3.py Formats code and modernizes imports.
src/bigc/resources/products_v3.py Formats code and modernizes imports.
src/bigc/resources/webhooks_v3.py Formats code and modernizes imports.
tests/test_api.py Reformats API tests.
tests/test_api_client.py Reformats tests and removes an unused import.
tests/test_exceptions.py Reformats exception tests.
tests/test_utils.py Reformats utility tests.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@r-thomson
r-thomson merged commit d5f1d3a into MedShift:master Aug 18, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants