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

[SEDONA-544] Add ruff-pre-commit for Python linting #1368

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

jbampton
Copy link
Member

@jbampton jbampton commented Apr 25, 2024

https://github.com/astral-sh/ruff-pre-commit

Currently just running Ruff's linter.

Used the default Ruff config file and just added code entries to the ignore array.

Did you read the Contributor Guide?

Is this PR related to a JIRA ticket?

What changes were proposed in this PR?

fixes #1367

Just getting setup with a basic config file in this PR.

In future we can decide more on formatting and on checking for more "codes".

By having the ruff check we stop regressions in Python syntax and formatting.

https://docs.astral.sh/ruff/configuration/

How was this patch tested?

Ran pre-commit run --all-files

Did this PR include necessary documentation updates?

  • No, this PR does not affect any public API so no need to change the documentation.

https://github.com/astral-sh/ruff-pre-commit

Currently just running Ruff's linter.

Used the default Ruff config file and just added code entries to the `ignore` array.
@jiayuasu jiayuasu merged commit 47a9ca4 into apache:master Apr 26, 2024
3 checks passed
@jbampton jbampton deleted the add-ruff-pre-commit branch April 26, 2024 02:26
jiayuasu pushed a commit that referenced this pull request Apr 28, 2024
https://github.com/astral-sh/ruff-pre-commit

Currently just running Ruff's linter.

Used the default Ruff config file and just added code entries to the `ignore` array.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

We should add ruff-pre-commit a pre-commit hook for Ruff for Python linting and formatting
2 participants