Skip to content

Update ruff config to enable more checks and run auto-fix 2/2#19

Open
justinchuby wants to merge 8 commits intomainfrom
justinchu/lintrunner-2
Open

Update ruff config to enable more checks and run auto-fix 2/2#19
justinchuby wants to merge 8 commits intomainfrom
justinchu/lintrunner-2

Conversation

@justinchuby
Copy link
Copy Markdown
Member

@justinchuby justinchuby commented Jun 4, 2024

Type of Change

Better engineering / linting

Description

This is the 2/2 of the series of PRs enabling ruff to match what the ONNX project has.

  • Update ruff config to enable more checks to have parity with the ONNX project and run auto-fix.
  • For the non-auto-fixable lint errors I added noqa inline for future readers to fix.

Expected Behavior & Potential Risk

Auto-fixed code should be correct, but they need to be guarded with CI.

@justinchuby justinchuby requested a review from chensuyue June 4, 2024 22:59
@justinchuby justinchuby changed the title Update ruff config to enable more checks and run auto-fix Update ruff config to enable more checks and run auto-fix 2/2 Jun 4, 2024
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