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

Run ruff format in CI #837

Merged
merged 3 commits into from
Aug 27, 2024
Merged

Run ruff format in CI #837

merged 3 commits into from
Aug 27, 2024

Conversation

timsaucer
Copy link
Contributor

@timsaucer timsaucer commented Aug 25, 2024

Which issue does this PR close?

Adds format check for python files to match pre-commit

Rationale for this change

We are getting some commits that are reformatting code. It is likely some users have pre-commit on and some do not. We do currently check ruff, but not ruff format.

What changes are included in this PR?

Enable ruff format in CI.
Apply formatting to 6 files.

Are there any user-facing changes?

None. Just code cleanliness.

@timsaucer
Copy link
Contributor Author

Evidence this is correctly finding files that do not have ruff formatting applied:

https://github.com/apache/datafusion-python/actions/runs/10547368222/job/29219963769?pr=837

@timsaucer
Copy link
Contributor Author

Evidence that it passes when formatting applied:

https://github.com/apache/datafusion-python/actions/runs/10547389324/job/29220013949?pr=837

@timsaucer
Copy link
Contributor Author

@Michael-J-Ward This should resolve the formatting issues in my other PR

@timsaucer timsaucer marked this pull request as ready for review August 25, 2024 17:15
@timsaucer
Copy link
Contributor Author

@andygrove Can we merge this in? It’s just white space and CI improvement

@timsaucer timsaucer mentioned this pull request Aug 27, 2024
9 tasks
@andygrove andygrove merged commit 766e2ed into apache:main Aug 27, 2024
15 checks passed
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.

3 participants