Skip to content

Commit f589aa2

Browse files
committed
fixed formatting issues with buildifier -r -mode=fix -lint=off
Signed-off-by: Sombrio <sombrio@sombrasoft.dev>
1 parent 8d19494 commit f589aa2

File tree

22 files changed

+94
-91
lines changed

22 files changed

+94
-91
lines changed

bazel/tcl_encode_or.bzl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ def _tcl_encode_or_impl(ctx):
2222
# Only keep .tcl and .py files.
2323
allowed_extensions = (".tcl", ".py")
2424
filtered_sources = [
25-
f for f in ctx.files.srcs if f.basename.endswith(allowed_extensions)
25+
f
26+
for f in ctx.files.srcs
27+
if f.basename.endswith(allowed_extensions)
2628
]
2729

2830
ctx.actions.run(

openroad/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ py_wheel(
3030
abi = "abi3",
3131
distribution = "openroad",
3232
homepage = "https://github.com/The-OpenROAD-Project/OpenROAD",
33+
platform = "linux_x86_64",
3334
python_requires = ">=3.10",
3435
python_tag = "cp310",
3536
version = "0.0.1",
3637
deps = [
3738
":openroad_pkg",
3839
],
39-
platform = "linux_x86_64"
4040
)

src/ant/BUILD

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# SPDX-License-Identifier: BSD-3-Clause
22
# Copyright (c) 2025, The OpenROAD Authors
33

4+
load("//bazel:python_wrap_cc.bzl", "python_wrap_cc")
45
load("//bazel:tcl_encode_or.bzl", "tcl_encode")
56
load("//bazel:tcl_wrap_cc.bzl", "tcl_wrap_cc")
6-
load("//bazel:python_wrap_cc.bzl", "python_wrap_cc")
77

88
package(
99
default_visibility = ["//:__subpackages__"],
@@ -90,13 +90,13 @@ python_wrap_cc(
9090
"src/AntennaChecker.i",
9191
"//:error_swig-py",
9292
],
93-
deps = [
94-
"//src/odb:swig-py",
95-
],
9693
module = "ant_py",
9794
root_swig_src = "src/AntennaChecker-py.i",
9895
swig_includes = [
9996
"include",
10097
"src",
10198
],
102-
)
99+
deps = [
100+
"//src/odb:swig-py",
101+
],
102+
)

src/dpl/BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# SPDX-License-Identifier: BSD-3-Clause
22
# Copyright (c) 2025, The OpenROAD Authors
33

4+
load("//bazel:python_wrap_cc.bzl", "python_wrap_cc")
45
load("//bazel:tcl_encode_or.bzl", "tcl_encode")
56
load("//bazel:tcl_wrap_cc.bzl", "tcl_wrap_cc")
6-
load("//bazel:python_wrap_cc.bzl", "python_wrap_cc")
77

88
package(
99
default_visibility = ["//:__subpackages__"],
@@ -176,4 +176,4 @@ python_wrap_cc(
176176
deps = [
177177
"//src/odb:swig-py",
178178
],
179-
)
179+
)

src/drt/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# SPDX-License-Identifier: BSD-3-Clause
22
# Copyright (c) 2025, The OpenROAD Authors
33

4+
load("//bazel:python_wrap_cc.bzl", "python_wrap_cc")
45
load("//bazel:tcl_encode_or.bzl", "tcl_encode")
56
load("//bazel:tcl_wrap_cc.bzl", "tcl_wrap_cc")
6-
load("//bazel:python_wrap_cc.bzl", "python_wrap_cc")
77

88
package(
99
default_visibility = ["//:__subpackages__"],

src/dst/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ cc_library(
4343
"@boost.system",
4444
] + select({
4545
"@platforms//os:macos": ["@boost.thread//:thread_mac"],
46-
"//conditions:default": ["@boost.thread//:thread_posix"],
46+
"//conditions:default": ["@boost.thread//:thread_posix"],
4747
}),
4848
)
4949

src/exa/BUILD

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# SPDX-License-Identifier: BSD-3-Clause
22
# Copyright (c) 2025, The OpenROAD Authors
33

4+
load("//bazel:python_wrap_cc.bzl", "python_wrap_cc")
45
load("//bazel:tcl_encode_or.bzl", "tcl_encode")
56
load("//bazel:tcl_wrap_cc.bzl", "tcl_wrap_cc")
6-
load("//bazel:python_wrap_cc.bzl", "python_wrap_cc")
77

88
package(
99
default_visibility = ["//:__subpackages__"],
@@ -97,5 +97,5 @@ python_wrap_cc(
9797
swig_includes = [
9898
"include",
9999
"src",
100-
]
101-
)
100+
],
101+
)

src/fin/BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# SPDX-License-Identifier: BSD-3-Clause
22
# Copyright (c) 2025, The OpenROAD Authors
33

4+
load("//bazel:python_wrap_cc.bzl", "python_wrap_cc")
45
load("//bazel:tcl_encode_or.bzl", "tcl_encode")
56
load("//bazel:tcl_wrap_cc.bzl", "tcl_wrap_cc")
6-
load("//bazel:python_wrap_cc.bzl", "python_wrap_cc")
77

88
package(
99
default_visibility = ["//:__subpackages__"],
@@ -84,4 +84,4 @@ python_wrap_cc(
8484
deps = [
8585
"//src/odb:swig-py",
8686
],
87-
)
87+
)

src/gpl/BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# SPDX-License-Identifier: BSD-3-Clause
22
# Copyright (c) 2025, The OpenROAD Authors
33

4+
load("//bazel:python_wrap_cc.bzl", "python_wrap_cc")
45
load("//bazel:tcl_encode_or.bzl", "tcl_encode")
56
load("//bazel:tcl_wrap_cc.bzl", "tcl_wrap_cc")
6-
load("//bazel:python_wrap_cc.bzl", "python_wrap_cc")
77

88
package(
99
default_visibility = ["//:__subpackages__"],
@@ -118,4 +118,4 @@ python_wrap_cc(
118118
"src",
119119
],
120120
visibility = ["//:__subpackages__"],
121-
)
121+
)

src/gpl/test/BUILD

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,19 @@ TESTS = [
4040
py_library(
4141
name = "helpers",
4242
srcs = ["helpers.py"],
43+
imports = ["."],
4344
deps = [
4445
"//openroad:openroadpy",
4546
],
46-
imports = ["."],
4747
)
4848

4949
py_library(
5050
name = "gpl_aux",
5151
srcs = ["gpl_aux.py"],
52+
imports = ["."],
5253
deps = [
5354
"//openroad:openroadpy",
5455
],
55-
imports = ["."],
5656
)
5757

5858
filegroup(
@@ -62,7 +62,7 @@ filegroup(
6262
"asap7/*.lib",
6363
"asap7/*.lef",
6464
"asap7/*.tcl",
65-
])
65+
]),
6666
)
6767

6868
filegroup(
@@ -115,16 +115,17 @@ PY_TESTS = [
115115
]
116116

117117
[
118-
py_test(
119-
name = test_name,
120-
srcs = [test_name + ".py"],
121-
deps = [
122-
"//openroad:openroadpy",
123-
":helpers",
124-
":gpl_aux",
125-
],
126-
data = [
127-
":test_resources"
128-
]
129-
)
130-
for test_name in PY_TESTS]
118+
py_test(
119+
name = test_name,
120+
srcs = [test_name + ".py"],
121+
data = [
122+
":test_resources",
123+
],
124+
deps = [
125+
":gpl_aux",
126+
":helpers",
127+
"//openroad:openroadpy",
128+
],
129+
)
130+
for test_name in PY_TESTS
131+
]

0 commit comments

Comments
 (0)