Skip to content

Conversation

@NellyWhads
Copy link

  • Add ruff's E rule to all components
  • Use ruff format on all components
  • Manually resolve the rest of the E group of linting violations adhering to file-local coding paradigms as closely as possible

Haven't assigned myself to be working on #878 since I'm a little unsure if the maintainers will be comfortable with the ruff format on the Pythonic components.

@NellyWhads NellyWhads changed the title Format and lint all dora-hub components with ruff Format and lint all node-hub components with ruff May 1, 2025
@NellyWhads
Copy link
Author

I can also add in a CI stage for ruff format and ruff check if that would be favorable.

@haixuanTao
Copy link
Collaborator

I think it would be great indeed to check it in the CI/CD

@NellyWhads
Copy link
Author

@haixuanTao - rebased and applied - GHA go brr.

@phil-opp phil-opp added the waiting-for-review Pull request is waiting for a review from maintainers. label May 21, 2025
Comment on lines +27 to +48

lint:
runs-on: ubuntu-24.04
needs: [find-jobs]
name: Lint
strategy:
fail-fast: ${{ github.event_name != 'workflow_dispatch' && !(github.event_name == 'release' && startsWith(github.ref, 'refs/tags/')) }}
matrix:
folder: ${{ fromJson(needs.find-jobs.outputs.folders )}}
steps:
- uses: actions/checkout@v4

- name: Install the latest version of uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true

- name: Run linting
working-directory: node-hub/${{ matrix.folder }}
run: |
uv tool install ruff
ruff check .
Copy link
Collaborator

Choose a reason for hiding this comment

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

FYI, this is not necessary as we already have it in our node hub script:

uv run ruff check .

:)

@phil-opp
Copy link
Collaborator

Triage: What's the status of this PR? Is this still needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting-for-review Pull request is waiting for a review from maintainers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants