Skip to content

Commit 3043e70

Browse files
committed
pants: minimize line change count in BUILD files
1 parent 11a63cd commit 3043e70

File tree

5 files changed

+5
-32
lines changed

5 files changed

+5
-32
lines changed

contrib/examples/actions/BUILD

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,5 @@ python_sources()
33
shell_sources(
44
name="shell",
55
skip_shellcheck=True,
6-
overrides={
7-
"print_to_stdout_and_stderr.sh": dict(skip_shfmt=True),
8-
}
6+
skip_shfmt=True,
97
)

pants.toml

+1-3
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,8 @@ install_from_resolve = "st2"
240240
[shfmt]
241241
args = [
242242
# https://github.com/mvdan/sh/blob/master/cmd/shfmt/shfmt.1.scd#printer-flags
243-
"--indent",
244-
"4", # default is 0 (use tabs)
243+
"--indent=4", # default is 0 (use tabs)
245244
"--case-indent",
246-
"--simplify",
247245
]
248246

249247
[test]

scripts/ci/BUILD

+1-11
Original file line numberDiff line numberDiff line change
@@ -1,11 +1 @@
1-
shell_sources(
2-
overrides={
3-
(
4-
"add-itest-user-key.sh",
5-
"permissions-workaround.sh",
6-
"run-nightly-make-task-if-exists.sh",
7-
"submit-codecov-coverage.sh",
8-
"time-command.sh",
9-
): dict(skip_shfmt=True),
10-
},
11-
)
1+
shell_sources(skip_shfmt=True)

scripts/github/BUILD

+1-8
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,5 @@ files(
88

99
shell_sources(
1010
dependencies=[":assets"],
11-
overrides={
12-
(
13-
"install-apt-packages-use-cache.sh",
14-
"install-mongosh.sh",
15-
"install-virtualenv.sh",
16-
"setup-environment.sh",
17-
): dict(skip_shfmt=True),
18-
},
11+
skip_shfmt=True,
1912
)

tools/BUILD

+1-7
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,8 @@ shell_sources(
4848
"st2-setup-*",
4949
],
5050
skip_shellcheck=True,
51+
skip_shfmt=True,
5152
dependencies=[
5253
"conf:st2_dev_conf",
5354
],
54-
overrides={
55-
(
56-
"db_cleanup.sh",
57-
"launchdev.sh",
58-
"st2-setup-tests",
59-
): dict(skip_shfmt=True),
60-
},
6155
)

0 commit comments

Comments
 (0)