You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the OpenMC style guide automated formatting of C++ code is required, and PEP8 compliance is required for python, however no autoformatting is used for python AFAIK. Black is a PEP8 formatting tool for python.
Suggestion for using black:
Add black as an optional dependency
Update style guide to require using black
Reformat all python using black. This would be a large commit
Implement a GHA test that checks if any python files need reformatting.
Alternatives
Do nothing, and continue relying on reviewers determining if code is PEP8.
Compatibility
No API changes would be needed. This would add an additional test, and would reformat the whole code base.
The text was updated successfully, but these errors were encountered:
Description
In the OpenMC style guide automated formatting of C++ code is required, and PEP8 compliance is required for python, however no autoformatting is used for python AFAIK. Black is a PEP8 formatting tool for python.
Suggestion for using black:
black
as an optional dependencyblack
. This would be a large commitAlternatives
Do nothing, and continue relying on reviewers determining if code is PEP8.
Compatibility
No API changes would be needed. This would add an additional test, and would reformat the whole code base.
The text was updated successfully, but these errors were encountered: