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

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

alanking
Copy link
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
Copy link
Member

trel commented Nov 14, 2024

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

@alanking
Copy link
Contributor Author

alanking commented Nov 14, 2024

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

trel commented Nov 15, 2024

ah, i see - not identical. thanks.

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

@alanking
Copy link
Contributor Author

alanking commented Dec 4, 2024

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