Skip to content

chore: install ruff inside generate.sh#187

Merged
JuroUhlar merged 1 commit intomainfrom
fix/sync-install-ruff
Apr 23, 2026
Merged

chore: install ruff inside generate.sh#187
JuroUhlar merged 1 commit intomainfrom
fix/sync-install-ruff

Conversation

@JuroUhlar
Copy link
Copy Markdown
Contributor

Summary

The external sync workflow in fingerprint-pro-server-api-openapi invokes bash ./generate.sh with only actions/setup-python in the environment, so ruff is not preinstalled and the script fails with No module named ruff. This makes generate.sh self-contained by installing ruff itself, so callers don't need to know to install it first.

Pinned to 0.15.0 to match the dev-dep in pyproject.toml.

Failure

https://github.com/fingerprintjs/fingerprint-pro-server-api-openapi/actions/runs/24790520856 — Python job.

Test plan

  • Ran bash ./generate.sh end-to-end in a clean venv (docker + pip install + ruff format + ruff check) locally
  • Re-run the Sync Server-Side SDKs schema workflow after merge to confirm the Python job succeeds

The external sync workflow in fingerprint-pro-server-api-openapi invokes
this script with only setup-python in the environment, so the ruff module
is not preinstalled and `python3 -m ruff format` fails with
"No module named ruff".

Install ruff (pinned to 0.15.0 to match pyproject.toml's dev dep) inside
generate.sh so callers don't need to know to install it first.

Failure: https://github.com/fingerprintjs/fingerprint-pro-server-api-openapi/actions/runs/24790520856
@github-actions
Copy link
Copy Markdown
Contributor

⚠️ This PR doesn't contain any changesets. If there are user-facing changes, don't forget to run:

pnpm exec changeset

to create a changeset.

@github-actions
Copy link
Copy Markdown
Contributor

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
2877 2062 72% 0% 🟢

New Files

No new covered files...

Modified Files

No covered modified files...

updated for commit: 17a1bcd by action🐍

Copy link
Copy Markdown
Member

@erayaydin erayaydin left a comment

Choose a reason for hiding this comment

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

LGTM. If the "poetry-only" migration takes too long, we could run ruff with docker like it was done in the PHP SDK (w/ php-cs-fixer), or we could read the ruff version from pyproject in the generate.sh file.

@JuroUhlar JuroUhlar merged commit 0bbee82 into main Apr 23, 2026
20 checks passed
@JuroUhlar JuroUhlar deleted the fix/sync-install-ruff branch April 23, 2026 09:55
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