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 python formatting and checking with ruff #6772

Merged
merged 4 commits into from
May 16, 2024
Merged

add python formatting and checking with ruff #6772

merged 4 commits into from
May 16, 2024

Conversation

torcolvin
Copy link
Collaborator

This allows use of common editors that format with black or ruff. Adds CI to make sure it takes.

Otherwise, I kept accidentally autoformatting files when I did a fix and I had to revert to use an editor without automatic formatting turned on.

The first commit is github actions changes, the second commit just automatic formatting, and the third commit 3142d31 is the manual changes I made. When reviewing, just look at {{.github}} folder and the third commit.

- remove unused modules / variables
- fix tests to start with test_* so that they run, change tests so that
  they pass
- remove duplicate definitions
- use `x not in y` instead of `not x in y`
@torcolvin torcolvin requested a review from bbrks April 12, 2024 14:10
@bbrks bbrks enabled auto-merge (squash) May 16, 2024 11:45
@bbrks bbrks merged commit 30d0291 into main May 16, 2024
33 of 34 checks passed
@bbrks bbrks deleted the ci-python-format branch May 16, 2024 12:49
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.

2 participants