Skip to content

Commit

Permalink
Update formatting.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeagle authored Oct 16, 2023
1 parent 79822b0 commit 82ec55f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions docs/formatting.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
```

Expand Down Expand Up @@ -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`
`bazel run //tools:format -- --mode check`

0 comments on commit 82ec55f

Please sign in to comment.