From 82ec55f285278cbf606a89f2c2f1653bdd4bc80c Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Mon, 16 Oct 2023 16:50:23 -0700 Subject: [PATCH] Update formatting.md --- docs/formatting.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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`