-
Notifications
You must be signed in to change notification settings - Fork 233
Format and lint all node-hub components with ruff #994
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
base: main
Are you sure you want to change the base?
Conversation
|
I can also add in a CI stage for |
|
I think it would be great indeed to check it in the CI/CD |
|
@haixuanTao - rebased and applied - GHA go brr. |
|
|
||
| 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 . |
There was a problem hiding this comment.
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:
dora/.github/workflows/node_hub_test.sh
Line 89 in 1f35724
| uv run ruff check . |
:)
|
Triage: What's the status of this PR? Is this still needed? |
ruff'sErule to all componentsruff formaton all componentsEgroup of linting violations adhering to file-local coding paradigms as closely as possibleHaven't assigned myself to be working on #878 since I'm a little unsure if the maintainers will be comfortable with the
ruff formaton the Pythonic components.