Skip to content

Conversation

@timsaucer
Copy link
Member

@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
Member 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
Member Author

Evidence that it passes when formatting applied:

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

@timsaucer
Copy link
Member 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
Member 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
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