diff --git a/docs/formatting.md b/docs/formatting.md index 66aa2755..1d1a31cf 100644 --- a/docs/formatting.md +++ b/docs/formatting.md @@ -12,13 +12,10 @@ Then register them on the `formatters` attribute, for example: ```starlark load("@aspect_rules_lint//format:defs.bzl", "multi_formatter_binary") -# A target "black" is declared here - multi_formatter_binary( name = "format", - formatters = { - "Python": ":black", - }, + # register languages, e.g. + # python = "@pip_black//:rules_python_wheel_entry_point_black", ) ``` @@ -69,4 +66,4 @@ $ chmod u+x .git/hooks/pre-commit This will exit non-zero if formatting is needed. You would typically run the check mode on CI. -`bazel run //tools:format -- --mode check` \ No newline at end of file +`bazel run //tools:format -- --mode check`