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

cicd: use ruff for autoformatting #292

Merged
merged 6 commits into from
Nov 13, 2023
Merged

cicd: use ruff for autoformatting #292

merged 6 commits into from
Nov 13, 2023

Conversation

jsstevenson
Copy link
Member

@jsstevenson jsstevenson commented Nov 8, 2023

Was limited in what I could work on on the plane, so I hit some low hanging fruit

@jsstevenson jsstevenson requested review from korikuzma and removed request for korikuzma November 8, 2023 21:32
@jsstevenson jsstevenson marked this pull request as draft November 8, 2023 21:33
@jsstevenson jsstevenson added the priority:low Low priority label Nov 8, 2023
@jsstevenson jsstevenson requested a review from korikuzma November 9, 2023 21:14
@jsstevenson jsstevenson marked this pull request as ready for review November 9, 2023 21:14
korikuzma
korikuzma previously approved these changes Nov 10, 2023
- name: ruff
uses: chartboost/ruff-action@v1
- name: Check style
run: python3 -m ruff check src/ tests/ && python3 -m ruff format --check src/ tests/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
run: python3 -m ruff check src/ tests/ && python3 -m ruff format --check src/ tests/
run: python3 -m ruff check . && python3 -m ruff format --check .

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@korikuzma this means that docs/conf.py gets checked/formatted, which I think is undesired -- it's a bit easier to manage manually (formatting also makes it look a little weird)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah gotcha, we could also exclude docs/conf.py in pyproject.toml

@jsstevenson jsstevenson merged commit 98294ed into main Nov 13, 2023
20 checks passed
@jsstevenson jsstevenson deleted the ruff branch November 13, 2023 20:04
jsstevenson added a commit that referenced this pull request Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:low Low priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants