Skip to content
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

build: update ruff and add lint-py-fix #54410

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

RedYetiDev
Copy link
Member

@RedYetiDev RedYetiDev commented Aug 16, 2024

This PR updates ruff to 0.6.5, and adds two new makefile targets:
lint-py-fix
lint-py-fix-unsafe

@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to build files or the CI. needs-ci PRs that need a full CI run. tools Issues and PRs related to the tools directory. labels Aug 16, 2024
@RedYetiDev RedYetiDev added python PRs and issues that require attention from people who are familiar with Python. and removed tools Issues and PRs related to the tools directory. needs-ci PRs that need a full CI run. labels Aug 16, 2024
Copy link
Member Author

@RedYetiDev RedYetiDev Aug 16, 2024

Choose a reason for hiding this comment

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

(Review note) Ref: astral-sh/ruff#12455

Copy link
Member

@mertcanaltin mertcanaltin left a comment

Choose a reason for hiding this comment

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

lgtm

@RedYetiDev
Copy link
Member Author

CC @nodejs/python

Copy link

codecov bot commented Aug 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.77%. Comparing base (efbba60) to head (5856d01).
Report is 529 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #54410      +/-   ##
==========================================
- Coverage   88.06%   87.77%   -0.29%     
==========================================
  Files         651      651              
  Lines      183538   183538              
  Branches    35862    35527     -335     
==========================================
- Hits       161635   161109     -526     
- Misses      15142    15678     +536     
+ Partials     6761     6751      -10     

see 65 files with indirect coverage changes

Makefile Outdated Show resolved Hide resolved
@RedYetiDev RedYetiDev added the commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. label Aug 16, 2024
@RedYetiDev
Copy link
Member Author

No objections in a week, how is everyone feeling about this?

Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
@RedYetiDev
Copy link
Member Author

Its never ending...

@RedYetiDev
Copy link
Member Author

Once this lands? Given that ruff keeps updating, another one shouldn't be opened until the next semver-minor, WDYT @cclauss

P.S. can this land?

@RedYetiDev RedYetiDev added the needs-ci PRs that need a full CI run. label Sep 4, 2024
@RedYetiDev
Copy link
Member Author

RedYetiDev commented Sep 4, 2024

(This modifies the Makefile, I don't know why I ever removed needs-ci)

I've also requested a CI, hopefully that's okay.

@RedYetiDev RedYetiDev added the request-ci Add this label to start a Jenkins CI on a PR. label Sep 4, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Sep 4, 2024
@nodejs-github-bot
Copy link
Collaborator

@RedYetiDev
Copy link
Member Author

I know ruff 0.6.3 is out, but I don't think it's worth it to upgrade ruff again until the next semver-minor.

@cclauss
Copy link
Contributor

cclauss commented Sep 5, 2024

@nodejs/python I have given this pull request a positive review and I think it should be merged but I am uncertain him to remove the Merging is blocked comment below.

@RedYetiDev
Copy link
Member Author

IIUC that notice is to prevent accidental merging from the GitHub UI (not the CQ)

@cclauss
Copy link
Contributor

cclauss commented Sep 5, 2024

What is a CQ?

@RedYetiDev
Copy link
Member Author

Apologies, the Commit Queue

@nodejs-github-bot

This comment was marked as outdated.

@RedYetiDev RedYetiDev removed the request-ci-failed An error occurred while starting CI via request-ci label, and manual interventon is needed. label Sep 14, 2024
@RedYetiDev
Copy link
Member Author

CI LGTM - The failure is related to an incident with github that has since been resolved.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@RedYetiDev
Copy link
Member Author

CI LGTM

@nodejs-github-bot
Copy link
Collaborator

@RedYetiDev
Copy link
Member Author

CI is passing, can this land?

@RedYetiDev
Copy link
Member Author

Ruff is currently at 0.6.7, however, this has a passing CI, and ruff get's updated all the time. For that reason, I'm not updating ruff again. IMO it can be done once v0.7 is released.

@RedYetiDev

This comment has been minimized.

@H4ad H4ad added the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 23, 2024
@nodejs-github-bot nodejs-github-bot added commit-queue-failed An error occurred while landing this pull request using GitHub Actions. and removed commit-queue Add this label to land a pull request using GitHub Actions. labels Sep 23, 2024
@nodejs-github-bot
Copy link
Collaborator

Commit Queue failed
- Loading data for nodejs/node/pull/54410
✔  Done loading data for nodejs/node/pull/54410
----------------------------------- PR info ------------------------------------
Title      build: update ruff and add `lint-py-fix` (#54410)
Author     Aviv Keller <[email protected]> (@RedYetiDev)
Branch     RedYetiDev:ruff-0.6.0 -> nodejs:main
Labels     build, python, author ready, needs-ci, commit-queue-squash
Commits    1
 - build: update ruff and add `lint-py-fix`
Committers 1
 - RedYetiDev <[email protected]>
PR-URL: https://github.com/nodejs/node/pull/54410
Reviewed-By: Christian Clauss <[email protected]>
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/54410
Reviewed-By: Christian Clauss <[email protected]>
--------------------------------------------------------------------------------
   ⚠  Commits were pushed since the last approving review:
   ⚠  - build: update ruff and add `lint-py-fix`
   ℹ  This PR was created on Fri, 16 Aug 2024 16:57:16 GMT
   ✔  Approvals: 1
   ✔  - Christian Clauss (@cclauss): https://github.com/nodejs/node/pull/54410#pullrequestreview-2258871347
   ✔  Last GitHub CI successful
   ℹ  Last Full PR CI on 2024-09-21T16:23:14Z: https://ci.nodejs.org/job/node-test-pull-request/62637/
- Querying data for job/node-test-pull-request/62637/
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/11001786432

@RedYetiDev
Copy link
Member Author

(Sorry for the ping, rerequesting review so this can land)

@richardlau richardlau added commit-queue Add this label to land a pull request using GitHub Actions. and removed commit-queue-failed An error occurred while landing this pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Sep 24, 2024
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 24, 2024
@nodejs-github-bot nodejs-github-bot merged commit a1cd3c8 into nodejs:main Sep 24, 2024
67 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in a1cd3c8

targos pushed a commit that referenced this pull request Oct 4, 2024
@aduh95 aduh95 mentioned this pull request Oct 9, 2024
louwers pushed a commit to louwers/node that referenced this pull request Nov 2, 2024
@marco-ippolito marco-ippolito added the backport-requested-v20.x PRs awaiting manual backport to the v20.x-staging branch. label Nov 16, 2024
tpoisseau pushed a commit to tpoisseau/node that referenced this pull request Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. backport-requested-v20.x PRs awaiting manual backport to the v20.x-staging branch. build Issues and PRs related to build files or the CI. needs-ci PRs that need a full CI run. python PRs and issues that require attention from people who are familiar with Python.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants