Skip to content

Commit 8dff175

Browse files
authored
Updating docs (bazel-contrib#868)
1 parent d314e96 commit 8dff175

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

CONTRIBUTING.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,23 @@ just a few small guidelines you need to follow.
66
## Formatting
77

88
Starlark files should be formatted by buildifier.
9+
Otherwise the Buildkite CI will yell at you about formatting/linting violations.
910
We suggest using a pre-commit hook to automate this.
1011
First [install pre-commit](https://pre-commit.com/#installation),
1112
then run
1213

1314
```shell
1415
pre-commit install
1516
```
17+
### Running buildifer manually
1618

17-
Otherwise the Buildkite CI will yell at you about formatting/linting violations.
19+
If you choose to run buildifier manually, run the following command:
20+
21+
```shell
22+
$ buildifier --lint=fix --warnings=native-py -warnings=all WORKSPACE
23+
```
24+
25+
Replace the argument "WORKSPACE" with the file that you are linting.
1826

1927
## Contributor License Agreement
2028

0 commit comments

Comments
 (0)