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

added python format checker single file at a time #2737

Closed

Conversation

shimwell
Copy link
Member

@shimwell shimwell commented Oct 19, 2023

This PR attempts to

1: add a python format checker to the CI for a single python file

2: show that the format checker fails with reasonable error messages

3: show that the format checker passes after formatting is corrected

I think we could gradually bring all the python files into the same formatting rules but this approach lets us process a single file at a time if that is desired

@shimwell
Copy link
Member Author

shimwell commented Oct 19, 2023

new python format checker has failed as intended and printing out how the file should be formatted in the CI

https://github.com/openmc-dev/openmc/actions/runs/6574802837

@shimwell
Copy link
Member Author

a single file has been formatted and now the python format checker in CI is now passing

https://github.com/openmc-dev/openmc/actions/runs/6574823724

@shimwell shimwell changed the title added python format checker single file added python format checker single file at a time Oct 19, 2023
@shimwell
Copy link
Member Author

shimwell commented Dec 1, 2023

I'm going to close this PR I made as:

  • we have an open issue for python formatting coding style for Python #2002
  • we have tons of open PRs at the moment and I'm a bit guilty of putting in to many PRs

this can be reopened if anyone wants

@shimwell shimwell closed this Dec 1, 2023
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.

1 participant