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

refactor/build: add Black format check to CI & format codebase #167

Merged
merged 6 commits into from
Apr 25, 2024

Conversation

jws-1
Copy link
Member

@jws-1 jws-1 commented Apr 25, 2024

A couple of us are already using the Black formatter in our development environments, this means that if we modify a file that does not adhere to this style, it leads to an annoying diff. This PR adds the Black format checker to our PR CI, meaning that any code that gets PR'd in, has to adhere to the Black formatter. Moreover, I formatted the entire codebase (as I had to do so, to get the check to pass so we can merge this in!).

I also reorganised our .github directory for future additional workflows, this meant modifying the documentation workflow too, so we need to verify that this is still working (it should run on this being merged in).

@jws-1 jws-1 changed the title chore(ci): reorganise .github and add black format check on PR and push. refactor/chore: add Black format check to CI & format codebase Apr 25, 2024
@jws-1 jws-1 requested a review from m-barker April 25, 2024 14:42
@jws-1 jws-1 changed the title refactor/chore: add Black format check to CI & format codebase refactor/build: add Black format check to CI & format codebase Apr 25, 2024
Copy link
Collaborator

@m-barker m-barker left a comment

Choose a reason for hiding this comment

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

Thanks very much for for doing this -- will be very useful!

@m-barker m-barker merged commit 35d88bd into main Apr 25, 2024
1 check passed
@m-barker m-barker deleted the ci-black-formatter branch April 25, 2024 14:51
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