Skip to content

Conversation

@mhucka
Copy link
Member

@mhucka mhucka commented Jan 12, 2026

This adds a couple of files for tools used by scripts in ./scripts/:

  • A config file for YAPF, copied from the TensorFlow repo. Even though it's very simple, it's useful enough because it prevents people getting incorrect results if they decide to run yapf directly. (The default used in this project and TensorFlow is Google style, but that's not the YAPF default.)

  • A config file for clang-format. This is based on the one from the TensorFlow repo and adds a section for Protobufs, because clang-format can format protobuf files too.

This adds a `.style.yapf`.
This adds a configuration file for `clang-format`. It's based on the one
from TensorFlow, with the addition of a section for Protobufs (which
`clang-format` is also able to format).
@MichaelBroughton
Copy link
Collaborator

We already have formatting scripts for both cpp and python, I don't know if we need these.

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