-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
.github/workflows/github-actions.yml
Outdated
- name: ruff | ||
uses: chartboost/ruff-action@v1 | ||
- name: Check style | ||
run: python3 -m ruff check src/ tests/ && python3 -m ruff format --check src/ tests/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
run: python3 -m ruff check src/ tests/ && python3 -m ruff format --check src/ tests/ | |
run: python3 -m ruff check . && python3 -m ruff format --check . |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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
Was limited in what I could work on on the plane, so I hit some low hanging fruit