Instructions for code formatting and style guidelines in the Carbon toolchain.
third_party/ should have a
license following
CONTRIBUTING license instructions.pre-commit run buildifier --files <file.bzl> to format
Bazel files.pre-commit run clang-format --files <file.cpp> to format C++
files.format command doesn't work well right now.
Instead, try to format Carbon code based on other Carbon files and the C++
style.pre-commit run prettier --files <file.md> to format
markdown files.pre-commit run black --files <file.py> to format Python
files.pre-commit run flake8 --files <file.py> to check Python style.