Skip to content

Linting workflow for Python and JavaScript. #745

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

Closed
wants to merge 1 commit into from

Conversation

mishushakov
Copy link
Member

This will help ensure code quality by checking Python and JavaScript code on pull requests.

Here's a summary of the changes:

  • For Python, I'm using Ruff.

    • You can find Ruff's configuration in packages/python-sdk/pyproject.toml.
    • I've applied initial auto-fixes, which brought down the error count from 653 to 367. We can tackle the remaining errors later.
    • The workflow will check the packages/python-sdk/ directory.
  • For JavaScript, I'm using Biome.

    • Biome's configuration is in biome.json at the root of the project.
    • The workflow will use Biome to check for errors in the packages/js-sdk/ directory.
    • I've applied initial auto-fixes (including some that were potentially unsafe), reducing errors in packages/js-sdk/ from over 90 to 22. We can address the remaining errors in subsequent steps.
    • I've disabled Biome's formatter to avoid any conflicts with Prettier.

For now, these linters will report errors but won't necessarily block pull requests for all remaining issues. This allows us to improve the codebase incrementally.

This will help ensure code quality by checking Python and JavaScript code on pull requests.

Here's a summary of the changes:

- For Python, I'm using Ruff.
  - You can find Ruff's configuration in `packages/python-sdk/pyproject.toml`.
  - I've applied initial auto-fixes, which brought down the error count from 653 to 367. We can tackle the remaining errors later.
  - The workflow will check the `packages/python-sdk/` directory.

- For JavaScript, I'm using Biome.
  - Biome's configuration is in `biome.json` at the root of the project.
  - The workflow will use Biome to check for errors in the `packages/js-sdk/` directory.
  - I've applied initial auto-fixes (including some that were potentially unsafe), reducing errors in `packages/js-sdk/` from over 90 to 22. We can address the remaining errors in subsequent steps.
  - I've disabled Biome's formatter to avoid any conflicts with Prettier.

For now, these linters will report errors but won't necessarily block pull requests for all remaining issues. This allows us to improve the codebase incrementally.
@mishushakov mishushakov self-assigned this May 26, 2025
Copy link

changeset-bot bot commented May 26, 2025

⚠️ No Changeset found

Latest commit: 37815e5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@mishushakov
Copy link
Member Author

Jules is failing me 😭

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