Skip to content

Add GitHub Actions for Ruff and Black, and make them green - #234

Draft
alanking wants to merge 4 commits into
irods:mainfrom
alanking:ruffaction
Draft

Add GitHub Actions for Ruff and Black, and make them green#234
alanking wants to merge 4 commits into
irods:mainfrom
alanking:ruffaction

Conversation

@alanking

Copy link
Copy Markdown
Contributor

Addresses #233

Can squash as desired and/or open issues for the different pieces of work.

@alanking
alanking marked this pull request as ready for review November 14, 2024 15:54
@alanking
alanking marked this pull request as draft November 14, 2024 16:03
@trel

trel commented Nov 14, 2024

Copy link
Copy Markdown
Member

ruff can do what black does, and much faster. do we need both?

@alanking

alanking commented Nov 14, 2024

Copy link
Copy Markdown
Contributor Author

The official GitHub Action workflow for Ruff did not do any formatting nor did it report any formatting errors. Personally, I kind of like having them separated even if we do end up using Ruff for both. Keeps the concerns separated.

Additionally, Ruff and Black differ in how they handle certain situations: https://github.com/astral-sh/ruff/blob/main/docs/formatter/black.md Perhaps it's a matter of configuration?

@trel

trel commented Nov 15, 2024

Copy link
Copy Markdown
Member

ah, i see - not identical. thanks.

two is definitely fine - until/if/when we have a stronger opinion to collapse to just ruff.

@alanking

alanking commented Dec 4, 2024

Copy link
Copy Markdown
Contributor Author

Noting for self: Waiting for #231 before merging this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants