diff --git a/BUILD.bazel b/BUILD.bazel index 520873ff0845..d6f9fb7f6499 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -1,9 +1,9 @@ # This file is named BUILD.bazel instead of the more typical BUILD, so that on # OSX it won't conflict with a build artifacts directory named "build". -load("//tools/skylark:py.bzl", "py_library") load("//tools/install:install.bzl", "install", "install_test") load("//tools/lint:lint.bzl", "add_lint_tests") +load("//tools/skylark:py.bzl", "py_library") package( default_visibility = ["//visibility:public"], diff --git a/bindings/pydrake/BUILD.bazel b/bindings/pydrake/BUILD.bazel index 065b2bc770d1..dfecbd029f16 100644 --- a/bindings/pydrake/BUILD.bazel +++ b/bindings/pydrake/BUILD.bazel @@ -1,3 +1,5 @@ +load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") +load("//bindings/pydrake:stubgen.bzl", "generate_python_stubs") load("//tools/install:install.bzl", "install") load( "//tools/skylark:drake_cc.bzl", @@ -18,8 +20,6 @@ load( "get_drake_py_installs", "get_pybind_package_info", ) -load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") -load("//bindings/pydrake:stubgen.bzl", "generate_python_stubs") load("//tools/workspace:generate_file.bzl", "generate_file") package(default_visibility = [ diff --git a/bindings/pydrake/autodiffutils/BUILD.bazel b/bindings/pydrake/autodiffutils/BUILD.bazel index 03f2c6409f44..8ce54597aee0 100644 --- a/bindings/pydrake/autodiffutils/BUILD.bazel +++ b/bindings/pydrake/autodiffutils/BUILD.bazel @@ -1,3 +1,4 @@ +load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") load("//tools/install:install.bzl", "install") load( "//tools/skylark:drake_cc.bzl", @@ -12,7 +13,6 @@ load( "//tools/skylark:pybind.bzl", "get_pybind_package_info", ) -load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") package(default_visibility = ["//visibility:private"]) diff --git a/bindings/pydrake/common/BUILD.bazel b/bindings/pydrake/common/BUILD.bazel index 8c8b357e08c5..9697fc33cfb0 100644 --- a/bindings/pydrake/common/BUILD.bazel +++ b/bindings/pydrake/common/BUILD.bazel @@ -1,9 +1,16 @@ +load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") load("//tools/install:install.bzl", "install") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", ) +load( + "//tools/skylark:drake_py.bzl", + "drake_py_binary", + "drake_py_library", + "drake_py_unittest", +) load( "//tools/skylark:pybind.bzl", "drake_pybind_cc_googletest", @@ -12,17 +19,10 @@ load( "get_drake_py_installs", "get_pybind_package_info", ) -load( - "//tools/skylark:drake_py.bzl", - "drake_py_binary", - "drake_py_library", - "drake_py_unittest", -) load( "//tools/workspace/pybind11:repository.bzl", "generate_pybind11_version_py_file", ) -load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") package(default_visibility = ["//visibility:private"]) diff --git a/bindings/pydrake/common/test_utilities/BUILD.bazel b/bindings/pydrake/common/test_utilities/BUILD.bazel index 5416611762f9..aa0a8d30cf64 100644 --- a/bindings/pydrake/common/test_utilities/BUILD.bazel +++ b/bindings/pydrake/common/test_utilities/BUILD.bazel @@ -1,7 +1,4 @@ -load( - "//tools/skylark:pybind.bzl", - "get_pybind_package_info", -) +load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") load( "//tools/skylark:drake_py.bzl", "drake_py_library", @@ -10,8 +7,8 @@ load( load( "//tools/skylark:pybind.bzl", "drake_pybind_library", + "get_pybind_package_info", ) -load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") package(default_visibility = [ "//bindings/pydrake:__subpackages__", diff --git a/bindings/pydrake/examples/BUILD.bazel b/bindings/pydrake/examples/BUILD.bazel index b09edb22bd1e..27ccc5cf34ee 100644 --- a/bindings/pydrake/examples/BUILD.bazel +++ b/bindings/pydrake/examples/BUILD.bazel @@ -1,16 +1,16 @@ +load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") load("//tools/install:install.bzl", "install") +load( + "//tools/skylark:drake_py.bzl", + "drake_py_library", + "drake_py_unittest", +) load( "//tools/skylark:pybind.bzl", "drake_pybind_library", "get_drake_py_installs", "get_pybind_package_info", ) -load( - "//tools/skylark:drake_py.bzl", - "drake_py_library", - "drake_py_unittest", -) -load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") package(default_visibility = [ "//bindings/pydrake:__subpackages__", diff --git a/bindings/pydrake/examples/gym/BUILD.bazel b/bindings/pydrake/examples/gym/BUILD.bazel index ceedaedd6896..f8fa7c6eb063 100644 --- a/bindings/pydrake/examples/gym/BUILD.bazel +++ b/bindings/pydrake/examples/gym/BUILD.bazel @@ -1,16 +1,16 @@ load("@python//:version.bzl", "PYTHON_VERSION") +load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") load("//tools/install:install.bzl", "install") -load( - "//tools/skylark:pybind.bzl", - "get_pybind_package_info", -) load( "//tools/skylark:drake_py.bzl", "drake_py_binary", "drake_py_library", "drake_py_test", ) -load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") +load( + "//tools/skylark:pybind.bzl", + "get_pybind_package_info", +) package(default_visibility = [ "//bindings/pydrake:__subpackages__", diff --git a/bindings/pydrake/examples/multibody/BUILD.bazel b/bindings/pydrake/examples/multibody/BUILD.bazel index b0d0f2e55210..843f44babcc2 100644 --- a/bindings/pydrake/examples/multibody/BUILD.bazel +++ b/bindings/pydrake/examples/multibody/BUILD.bazel @@ -1,15 +1,15 @@ +load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") load("//tools/install:install.bzl", "install") -load( - "//tools/skylark:pybind.bzl", - "get_drake_py_installs", - "get_pybind_package_info", -) load( "//tools/skylark:drake_py.bzl", "drake_py_binary", "drake_py_library", ) -load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") +load( + "//tools/skylark:pybind.bzl", + "get_drake_py_installs", + "get_pybind_package_info", +) package(default_visibility = [ "//bindings/pydrake:__subpackages__", diff --git a/bindings/pydrake/geometry/BUILD.bazel b/bindings/pydrake/geometry/BUILD.bazel index fe9bc29f2506..7aa380e29f51 100644 --- a/bindings/pydrake/geometry/BUILD.bazel +++ b/bindings/pydrake/geometry/BUILD.bazel @@ -1,3 +1,4 @@ +load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") load("//tools/install:install.bzl", "install") load( "//tools/skylark:drake_cc.bzl", @@ -13,7 +14,6 @@ load( "get_drake_py_installs", "get_pybind_package_info", ) -load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") package(default_visibility = [ "//bindings:__subpackages__", diff --git a/bindings/pydrake/gym/BUILD.bazel b/bindings/pydrake/gym/BUILD.bazel index fb3d380bfb85..adba9779fa01 100644 --- a/bindings/pydrake/gym/BUILD.bazel +++ b/bindings/pydrake/gym/BUILD.bazel @@ -1,15 +1,15 @@ load("@python//:version.bzl", "PYTHON_VERSION") +load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") load("//tools/install:install.bzl", "install") -load( - "//tools/skylark:pybind.bzl", - "get_pybind_package_info", -) load( "//tools/skylark:drake_py.bzl", "drake_py_library", "drake_py_unittest", ) -load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") +load( + "//tools/skylark:pybind.bzl", + "get_pybind_package_info", +) package(default_visibility = [ "//bindings/pydrake:__subpackages__", diff --git a/bindings/pydrake/manipulation/BUILD.bazel b/bindings/pydrake/manipulation/BUILD.bazel index 1734c02ea2b2..1a3a155b59c3 100644 --- a/bindings/pydrake/manipulation/BUILD.bazel +++ b/bindings/pydrake/manipulation/BUILD.bazel @@ -1,16 +1,16 @@ +load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") load("//tools/install:install.bzl", "install") +load( + "//tools/skylark:drake_py.bzl", + "drake_py_library", + "drake_py_unittest", +) load( "//tools/skylark:pybind.bzl", "drake_pybind_library", "get_drake_py_installs", "get_pybind_package_info", ) -load( - "//tools/skylark:drake_py.bzl", - "drake_py_library", - "drake_py_unittest", -) -load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") package(default_visibility = [ "//bindings/pydrake:__subpackages__", diff --git a/bindings/pydrake/math/BUILD.bazel b/bindings/pydrake/math/BUILD.bazel index 958636625dfc..d30a4b3ba9fa 100644 --- a/bindings/pydrake/math/BUILD.bazel +++ b/bindings/pydrake/math/BUILD.bazel @@ -1,3 +1,4 @@ +load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") load("//tools/install:install.bzl", "install") load( "//tools/skylark:drake_cc.bzl", @@ -14,7 +15,6 @@ load( "EXTRA_PYBIND_COPTS", "get_pybind_package_info", ) -load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") package(default_visibility = ["//visibility:private"]) diff --git a/bindings/pydrake/multibody/BUILD.bazel b/bindings/pydrake/multibody/BUILD.bazel index 0f71a78492b5..f641b31a6225 100644 --- a/bindings/pydrake/multibody/BUILD.bazel +++ b/bindings/pydrake/multibody/BUILD.bazel @@ -1,9 +1,10 @@ +load("@python//:version.bzl", "PYTHON_SITE_PACKAGES_RELPATH") +load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") load("//tools/install:install.bzl", "install", "install_files") +load("//tools/jupyter:jupyter_py.bzl", "drake_jupyter_py_binary") load( - "//tools/skylark:pybind.bzl", - "drake_pybind_library", - "get_drake_py_installs", - "get_pybind_package_info", + "//tools/skylark:alias.bzl", + "drake_py_library_aliases", ) load( "//tools/skylark:drake_py.bzl", @@ -12,12 +13,11 @@ load( "drake_py_unittest", ) load( - "//tools/skylark:alias.bzl", - "drake_py_library_aliases", + "//tools/skylark:pybind.bzl", + "drake_pybind_library", + "get_drake_py_installs", + "get_pybind_package_info", ) -load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") -load("//tools/jupyter:jupyter_py.bzl", "drake_jupyter_py_binary") -load("@python//:version.bzl", "PYTHON_SITE_PACKAGES_RELPATH") load( "//tools/workspace:cmake_configure_file.bzl", "cmake_configure_file", diff --git a/bindings/pydrake/planning/BUILD.bazel b/bindings/pydrake/planning/BUILD.bazel index e240ba78ca82..3336cd795ec6 100644 --- a/bindings/pydrake/planning/BUILD.bazel +++ b/bindings/pydrake/planning/BUILD.bazel @@ -1,15 +1,15 @@ +load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") load("//tools/install:install.bzl", "install") +load( + "//tools/skylark:drake_py.bzl", + "drake_py_unittest", +) load( "//tools/skylark:pybind.bzl", "drake_pybind_library", "get_drake_py_installs", "get_pybind_package_info", ) -load( - "//tools/skylark:drake_py.bzl", - "drake_py_unittest", -) -load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") package(default_visibility = [ "//bindings/pydrake:__subpackages__", diff --git a/bindings/pydrake/solvers/BUILD.bazel b/bindings/pydrake/solvers/BUILD.bazel index 090fa378bbb4..a9414b8d90d5 100644 --- a/bindings/pydrake/solvers/BUILD.bazel +++ b/bindings/pydrake/solvers/BUILD.bazel @@ -1,13 +1,18 @@ +load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") load("//tools/install:install.bzl", "install") load( - "//tools/skylark:test_tags.bzl", - "gurobi_test_tags", - "mosek_test_tags", + "//tools/skylark:alias.bzl", + "drake_py_library_aliases", ) load( "//tools/skylark:drake_cc.bzl", "drake_cc_library", ) +load( + "//tools/skylark:drake_py.bzl", + "drake_py_library", + "drake_py_unittest", +) load( "//tools/skylark:pybind.bzl", "drake_pybind_library", @@ -15,15 +20,10 @@ load( "get_pybind_package_info", ) load( - "//tools/skylark:drake_py.bzl", - "drake_py_library", - "drake_py_unittest", -) -load( - "//tools/skylark:alias.bzl", - "drake_py_library_aliases", + "//tools/skylark:test_tags.bzl", + "gurobi_test_tags", + "mosek_test_tags", ) -load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") package(default_visibility = [ "//bindings/pydrake:__subpackages__", diff --git a/bindings/pydrake/symbolic/BUILD.bazel b/bindings/pydrake/symbolic/BUILD.bazel index 8e0cc13868c7..f096a039944b 100644 --- a/bindings/pydrake/symbolic/BUILD.bazel +++ b/bindings/pydrake/symbolic/BUILD.bazel @@ -1,3 +1,4 @@ +load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") load("//tools/install:install.bzl", "install") load( "//tools/skylark:drake_cc.bzl", @@ -13,7 +14,6 @@ load( "EXTRA_PYBIND_COPTS", "get_pybind_package_info", ) -load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") package(default_visibility = [ "//bindings/pydrake:__pkg__", diff --git a/bindings/pydrake/systems/BUILD.bazel b/bindings/pydrake/systems/BUILD.bazel index 960c1812c430..ed1b5f683842 100644 --- a/bindings/pydrake/systems/BUILD.bazel +++ b/bindings/pydrake/systems/BUILD.bazel @@ -1,10 +1,6 @@ +load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") load("//tools/install:install.bzl", "install") -load( - "//tools/skylark:pybind.bzl", - "drake_pybind_library", - "get_drake_py_installs", - "get_pybind_package_info", -) +load("//tools/jupyter:jupyter_py.bzl", "drake_jupyter_py_binary") load( "//tools/skylark:drake_cc.bzl", "drake_cc_library", @@ -15,8 +11,12 @@ load( "drake_py_library", "drake_py_unittest", ) -load("//tools/jupyter:jupyter_py.bzl", "drake_jupyter_py_binary") -load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") +load( + "//tools/skylark:pybind.bzl", + "drake_pybind_library", + "get_drake_py_installs", + "get_pybind_package_info", +) load("//tools/skylark:test_tags.bzl", "vtk_test_tags") package(default_visibility = [ diff --git a/bindings/pydrake/visualization/BUILD.bazel b/bindings/pydrake/visualization/BUILD.bazel index 21841f4addb6..b9ee7f763cb1 100644 --- a/bindings/pydrake/visualization/BUILD.bazel +++ b/bindings/pydrake/visualization/BUILD.bazel @@ -1,22 +1,22 @@ +load("@python//:version.bzl", "PYTHON_SITE_PACKAGES_RELPATH") +load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") load("//tools/install:install.bzl", "install", "install_files") -load( - "//tools/skylark:pybind.bzl", - "drake_pybind_library", - "get_drake_py_installs", - "get_pybind_package_info", -) load( "//tools/skylark:drake_py.bzl", "drake_py_binary", "drake_py_library", "drake_py_unittest", ) -load("@python//:version.bzl", "PYTHON_SITE_PACKAGES_RELPATH") +load( + "//tools/skylark:pybind.bzl", + "drake_pybind_library", + "get_drake_py_installs", + "get_pybind_package_info", +) load( "//tools/workspace:cmake_configure_file.bzl", "cmake_configure_file", ) -load("//bindings/pydrake:pydrake.bzl", "add_lint_tests_pydrake") package(default_visibility = [ "//bindings/pydrake:__subpackages__", diff --git a/cmake/external/workspace/eigen/BUILD.bazel.in b/cmake/external/workspace/eigen/BUILD.bazel.in index a2c284c57868..9085c4aa72e6 100644 --- a/cmake/external/workspace/eigen/BUILD.bazel.in +++ b/cmake/external/workspace/eigen/BUILD.bazel.in @@ -1,7 +1,7 @@ # -*- bazel -*- -load("@drake//tools/install:install.bzl", "install") load("@drake//:cmake/external/workspace/conversion.bzl", "split_cmake_list") +load("@drake//tools/install:install.bzl", "install") EIGEN_DEFINES = split_cmake_list( "$", diff --git a/cmake/external/workspace/fmt/BUILD.bazel.in b/cmake/external/workspace/fmt/BUILD.bazel.in index 63d7fd3e90d9..5551f5ff92c2 100644 --- a/cmake/external/workspace/fmt/BUILD.bazel.in +++ b/cmake/external/workspace/fmt/BUILD.bazel.in @@ -1,10 +1,10 @@ # -*- bazel -*- -load("@drake//tools/install:install.bzl", "install") load( "@drake//:cmake/external/workspace/conversion.bzl", "split_cmake_list", ) +load("@drake//tools/install:install.bzl", "install") _DEFINES = split_cmake_list( "$", diff --git a/cmake/external/workspace/spdlog/BUILD.bazel.in b/cmake/external/workspace/spdlog/BUILD.bazel.in index 04aebacc4e08..12e05c6a0a7c 100644 --- a/cmake/external/workspace/spdlog/BUILD.bazel.in +++ b/cmake/external/workspace/spdlog/BUILD.bazel.in @@ -1,10 +1,10 @@ # -*- bazel -*- -load("@drake//tools/install:install.bzl", "install") load( "@drake//:cmake/external/workspace/conversion.bzl", "split_cmake_list", ) +load("@drake//tools/install:install.bzl", "install") _DEFINES = split_cmake_list( "$", diff --git a/common/BUILD.bazel b/common/BUILD.bazel index e590c097a5e0..2da76710e37e 100644 --- a/common/BUILD.bazel +++ b/common/BUILD.bazel @@ -1,3 +1,5 @@ +load("//tools/install:install.bzl", "install") +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", @@ -11,8 +13,6 @@ load( "drake_py_binary", "drake_py_unittest", ) -load("//tools/install:install.bzl", "install") -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/common/ad/BUILD.bazel b/common/ad/BUILD.bazel index 263f0a496155..46030d30950b 100644 --- a/common/ad/BUILD.bazel +++ b/common/ad/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:private"]) diff --git a/common/benchmarking/BUILD.bazel b/common/benchmarking/BUILD.bazel index 8fcddfc06930..d37aa7e4fefb 100644 --- a/common/benchmarking/BUILD.bazel +++ b/common/benchmarking/BUILD.bazel @@ -1,9 +1,9 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/performance:defs.bzl", "drake_cc_googlebench_binary", "drake_py_experiment_binary", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/common/proto/BUILD.bazel b/common/proto/BUILD.bazel index 43123001788a..7ee2798b8227 100644 --- a/common/proto/BUILD.bazel +++ b/common/proto/BUILD.bazel @@ -1,3 +1,5 @@ +load("//tools/install:install.bzl", "install") +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", @@ -10,8 +12,6 @@ load( "drake_py_library", "drake_py_unittest", ) -load("//tools/install:install.bzl", "install") -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/common/schema/BUILD.bazel b/common/schema/BUILD.bazel index f16370ce9b83..9ec67cbf5fbb 100644 --- a/common/schema/BUILD.bazel +++ b/common/schema/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/common/symbolic/BUILD.bazel b/common/symbolic/BUILD.bazel index fc2bcb8dca6a..e433e5a56352 100644 --- a/common/symbolic/BUILD.bazel +++ b/common/symbolic/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/common/symbolic/expression/BUILD.bazel b/common/symbolic/expression/BUILD.bazel index c976e61d4d41..57ca03b66315 100644 --- a/common/symbolic/expression/BUILD.bazel +++ b/common/symbolic/expression/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:private"]) diff --git a/common/test_utilities/BUILD.bazel b/common/test_utilities/BUILD.bazel index 5910967861bf..2b48a2bfc7a6 100644 --- a/common/test_utilities/BUILD.bazel +++ b/common/test_utilities/BUILD.bazel @@ -1,3 +1,4 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", @@ -9,7 +10,6 @@ load( "//tools/skylark:drake_py.bzl", "drake_py_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/common/trajectories/BUILD.bazel b/common/trajectories/BUILD.bazel index 6afeffa9e480..7970ae4970a3 100644 --- a/common/trajectories/BUILD.bazel +++ b/common/trajectories/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/common/yaml/BUILD.bazel b/common/yaml/BUILD.bazel index 67eb92d48c74..40abb5f5bb27 100644 --- a/common/yaml/BUILD.bazel +++ b/common/yaml/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/doc/BUILD.bazel b/doc/BUILD.bazel index 74a84efe1b5e..22f049202046 100644 --- a/doc/BUILD.bazel +++ b/doc/BUILD.bazel @@ -1,5 +1,4 @@ -package(default_visibility = ["//visibility:private"]) - +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_py.bzl", "drake_py_binary", @@ -10,7 +9,8 @@ load( "DEFAULT_TEST_TAGS", "enumerate_filegroup", ) -load("//tools/lint:lint.bzl", "add_lint_tests") + +package(default_visibility = ["//visibility:private"]) exports_files([ # For use by @drake//geometry:meshcat. diff --git a/doc/doxygen_cxx/BUILD.bazel b/doc/doxygen_cxx/BUILD.bazel index 065da798cd8e..762df5879a58 100644 --- a/doc/doxygen_cxx/BUILD.bazel +++ b/doc/doxygen_cxx/BUILD.bazel @@ -1,17 +1,17 @@ -package(default_visibility = ["//visibility:private"]) - -load( - "//tools/skylark:drake_py.bzl", - "drake_py_binary", - "drake_py_library", - "drake_py_unittest", -) load( "//doc:defs.bzl", "DEFAULT_TEST_TAGS", "enumerate_filegroup", ) load("//tools/lint:lint.bzl", "add_lint_tests") +load( + "//tools/skylark:drake_py.bzl", + "drake_py_binary", + "drake_py_library", + "drake_py_unittest", +) + +package(default_visibility = ["//visibility:private"]) # This library is the loadable module used by our pydrake documentation tools # to render system diagrams. Our Doxygen build uses the same Python file, but diff --git a/doc/pydrake/BUILD.bazel b/doc/pydrake/BUILD.bazel index 61528688e77b..dac768274463 100644 --- a/doc/pydrake/BUILD.bazel +++ b/doc/pydrake/BUILD.bazel @@ -1,16 +1,16 @@ -package(default_visibility = ["//visibility:private"]) - -load( - "//tools/skylark:drake_py.bzl", - "drake_py_binary", - "drake_py_library", -) load( "//doc:defs.bzl", "DEFAULT_TEST_TAGS", "enumerate_filegroup", ) load("//tools/lint:lint.bzl", "add_lint_tests") +load( + "//tools/skylark:drake_py.bzl", + "drake_py_binary", + "drake_py_library", +) + +package(default_visibility = ["//visibility:private"]) # TODO(eric.cousineau): Add a smaller stub library stub to test this extension. drake_py_library( diff --git a/doc/styleguide/BUILD.bazel b/doc/styleguide/BUILD.bazel index 88529a5ac3f1..c80c7d36a0bf 100644 --- a/doc/styleguide/BUILD.bazel +++ b/doc/styleguide/BUILD.bazel @@ -1,15 +1,15 @@ -package(default_visibility = ["//visibility:private"]) - -load( - "//tools/skylark:drake_py.bzl", - "drake_py_binary", -) load( "//doc:defs.bzl", "DEFAULT_TEST_TAGS", "enumerate_filegroup", ) load("//tools/lint:lint.bzl", "add_lint_tests") +load( + "//tools/skylark:drake_py.bzl", + "drake_py_binary", +) + +package(default_visibility = ["//visibility:private"]) filegroup( name = "jekyll_input", diff --git a/examples/BUILD.bazel b/examples/BUILD.bazel index 11f1ad701227..a3159c3f8130 100644 --- a/examples/BUILD.bazel +++ b/examples/BUILD.bazel @@ -1,6 +1,6 @@ -load("//tools/skylark:drake_cc.bzl", "drake_cc_binary") -load("//tools/lint:lint.bzl", "add_lint_tests") load("//tools/install:install.bzl", "install") +load("//tools/lint:lint.bzl", "add_lint_tests") +load("//tools/skylark:drake_cc.bzl", "drake_cc_binary") drake_cc_binary( name = "simple_continuous_time_system", diff --git a/examples/acrobot/BUILD.bazel b/examples/acrobot/BUILD.bazel index 908d5ef3def6..c0fa9e53f33c 100644 --- a/examples/acrobot/BUILD.bazel +++ b/examples/acrobot/BUILD.bazel @@ -1,9 +1,12 @@ +load("//tools/install:install_data.bzl", "install_data") +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", "drake_cc_googletest", "drake_cc_library", ) +load("//tools/skylark:drake_data.bzl", "models_filegroup") load( "//tools/skylark:drake_py.bzl", "drake_py_binary", @@ -11,13 +14,10 @@ load( "drake_py_test", "drake_py_unittest", ) -load("//tools/skylark:drake_data.bzl", "models_filegroup") -load("//tools/install:install_data.bzl", "install_data") load( "//tools/vector_gen:vector_gen.bzl", "drake_cc_vector_gen_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:private"]) diff --git a/examples/allegro_hand/BUILD.bazel b/examples/allegro_hand/BUILD.bazel index 6fd1866eb8fa..6be1dcd8533e 100644 --- a/examples/allegro_hand/BUILD.bazel +++ b/examples/allegro_hand/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", "drake_cc_googletest", "drake_cc_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package( default_visibility = [":__subpackages__"], diff --git a/examples/allegro_hand/joint_control/BUILD.bazel b/examples/allegro_hand/joint_control/BUILD.bazel index a700888d94f2..ba4cdb84e66b 100644 --- a/examples/allegro_hand/joint_control/BUILD.bazel +++ b/examples/allegro_hand/joint_control/BUILD.bazel @@ -1,3 +1,4 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", @@ -8,7 +9,6 @@ load( "//tools/skylark:drake_py.bzl", "drake_py_unittest", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/examples/atlas/BUILD.bazel b/examples/atlas/BUILD.bazel index 7d0d7f8c0769..8ad7cc4b853c 100644 --- a/examples/atlas/BUILD.bazel +++ b/examples/atlas/BUILD.bazel @@ -1,8 +1,8 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/examples/bead_on_a_wire/BUILD.bazel b/examples/bead_on_a_wire/BUILD.bazel index b37f6fcd0d7a..bb74cfe69fc6 100644 --- a/examples/bead_on_a_wire/BUILD.bazel +++ b/examples/bead_on_a_wire/BUILD.bazel @@ -1,9 +1,9 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/examples/bouncing_ball/BUILD.bazel b/examples/bouncing_ball/BUILD.bazel index dd24abd2efc8..f96208ecb4cc 100644 --- a/examples/bouncing_ball/BUILD.bazel +++ b/examples/bouncing_ball/BUILD.bazel @@ -1,9 +1,9 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/examples/compass_gait/BUILD.bazel b/examples/compass_gait/BUILD.bazel index 31835694a572..073e19583d15 100644 --- a/examples/compass_gait/BUILD.bazel +++ b/examples/compass_gait/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", "drake_cc_googletest", "drake_cc_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/vector_gen:vector_gen.bzl", "drake_cc_vector_gen_library", diff --git a/examples/cubic_polynomial/BUILD.bazel b/examples/cubic_polynomial/BUILD.bazel index 07d23f60212b..af9bda44e161 100644 --- a/examples/cubic_polynomial/BUILD.bazel +++ b/examples/cubic_polynomial/BUILD.bazel @@ -1,5 +1,5 @@ -load("//tools/skylark:drake_cc.bzl", "drake_cc_binary") load("//tools/lint:lint.bzl", "add_lint_tests") +load("//tools/skylark:drake_cc.bzl", "drake_cc_binary") load("//tools/skylark:test_tags.bzl", "mosek_test_tags") drake_cc_binary( diff --git a/examples/fibonacci/BUILD.bazel b/examples/fibonacci/BUILD.bazel index 1445ccb2d670..0776924af645 100644 --- a/examples/fibonacci/BUILD.bazel +++ b/examples/fibonacci/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", "drake_cc_googletest", "drake_cc_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/examples/hardware_sim/BUILD.bazel b/examples/hardware_sim/BUILD.bazel index 317a1cd0cb04..906eda037f23 100644 --- a/examples/hardware_sim/BUILD.bazel +++ b/examples/hardware_sim/BUILD.bazel @@ -1,3 +1,4 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", @@ -9,11 +10,6 @@ load( "drake_py_library", "drake_py_unittest", ) -load( - "//tools/skylark:drake_py.bzl", - "drake_py_unittest", -) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:private"]) diff --git a/examples/hydroelastic/ball_plate/BUILD.bazel b/examples/hydroelastic/ball_plate/BUILD.bazel index 9c7393417333..6a3530f1ff6e 100644 --- a/examples/hydroelastic/ball_plate/BUILD.bazel +++ b/examples/hydroelastic/ball_plate/BUILD.bazel @@ -1,11 +1,11 @@ -package(default_visibility = ["//visibility:private"]) - +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", "drake_cc_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") + +package(default_visibility = ["//visibility:private"]) filegroup( name = "models", diff --git a/examples/hydroelastic/python_ball_paddle/BUILD.bazel b/examples/hydroelastic/python_ball_paddle/BUILD.bazel index 9c7ee75bc169..7d5a4e399b66 100644 --- a/examples/hydroelastic/python_ball_paddle/BUILD.bazel +++ b/examples/hydroelastic/python_ball_paddle/BUILD.bazel @@ -1,5 +1,5 @@ -load("//tools/skylark:drake_py.bzl", "drake_py_binary") load("//tools/lint:lint.bzl", "add_lint_tests") +load("//tools/skylark:drake_py.bzl", "drake_py_binary") package(default_visibility = ["//visibility:private"]) diff --git a/examples/hydroelastic/python_nonconvex_mesh/BUILD.bazel b/examples/hydroelastic/python_nonconvex_mesh/BUILD.bazel index ed0f233432d6..64fc8b2818ac 100644 --- a/examples/hydroelastic/python_nonconvex_mesh/BUILD.bazel +++ b/examples/hydroelastic/python_nonconvex_mesh/BUILD.bazel @@ -1,5 +1,5 @@ -load("//tools/skylark:drake_py.bzl", "drake_py_binary") load("//tools/lint:lint.bzl", "add_lint_tests") +load("//tools/skylark:drake_py.bzl", "drake_py_binary") package(default_visibility = ["//visibility:private"]) diff --git a/examples/hydroelastic/spatula_slip_control/BUILD.bazel b/examples/hydroelastic/spatula_slip_control/BUILD.bazel index 8e6e87aa223d..42f8495d0397 100644 --- a/examples/hydroelastic/spatula_slip_control/BUILD.bazel +++ b/examples/hydroelastic/spatula_slip_control/BUILD.bazel @@ -1,5 +1,5 @@ -load("//tools/skylark:drake_cc.bzl", "drake_cc_binary") load("//tools/lint:lint.bzl", "add_lint_tests") +load("//tools/skylark:drake_cc.bzl", "drake_cc_binary") load("//tools/skylark:drake_data.bzl", "models_filegroup") models_filegroup( diff --git a/examples/kinova_jaco_arm/BUILD.bazel b/examples/kinova_jaco_arm/BUILD.bazel index e0d9db7751c1..7c5c85244f7d 100644 --- a/examples/kinova_jaco_arm/BUILD.bazel +++ b/examples/kinova_jaco_arm/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", "drake_cc_googletest", "drake_cc_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package( default_visibility = [":__subpackages__"], diff --git a/examples/kuka_iiwa_arm/BUILD.bazel b/examples/kuka_iiwa_arm/BUILD.bazel index 0df766bf5026..f645f7365c51 100644 --- a/examples/kuka_iiwa_arm/BUILD.bazel +++ b/examples/kuka_iiwa_arm/BUILD.bazel @@ -1,3 +1,4 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", @@ -8,7 +9,6 @@ load( "//tools/skylark:drake_py.bzl", "drake_py_unittest", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package( default_visibility = [":__subpackages__"], diff --git a/examples/kuka_iiwa_arm/models/BUILD.bazel b/examples/kuka_iiwa_arm/models/BUILD.bazel index c52ab226fd2a..7bd255d0749c 100644 --- a/examples/kuka_iiwa_arm/models/BUILD.bazel +++ b/examples/kuka_iiwa_arm/models/BUILD.bazel @@ -1,6 +1,6 @@ -load("//tools/skylark:drake_data.bzl", "models_filegroup") load("//tools/install:install_data.bzl", "install_data") load("//tools/lint:lint.bzl", "add_lint_tests") +load("//tools/skylark:drake_data.bzl", "models_filegroup") package(default_visibility = ["//visibility:public"]) diff --git a/examples/manipulation_station/BUILD.bazel b/examples/manipulation_station/BUILD.bazel index 2ae7bb5e66e8..f64a0e170ef1 100644 --- a/examples/manipulation_station/BUILD.bazel +++ b/examples/manipulation_station/BUILD.bazel @@ -1,18 +1,17 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", "drake_cc_googletest", "drake_cc_library", ) +load("//tools/skylark:drake_data.bzl", "models_filegroup") load( "//tools/skylark:drake_py.bzl", "drake_py_binary", "drake_py_library", ) load("//tools/skylark:test_tags.bzl", "vtk_test_tags") -load("//tools/skylark:drake_data.bzl", "models_filegroup") -load("//tools/lint:lint.bzl", "add_lint_tests") -load("//tools/skylark:test_tags.bzl", "vtk_test_tags") drake_cc_library( name = "manipulation_station", diff --git a/examples/mass_spring_cloth/BUILD.bazel b/examples/mass_spring_cloth/BUILD.bazel index 2a24a3223665..b764e8db58c7 100644 --- a/examples/mass_spring_cloth/BUILD.bazel +++ b/examples/mass_spring_cloth/BUILD.bazel @@ -1,3 +1,4 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", @@ -8,7 +9,6 @@ load( "//tools/vector_gen:vector_gen.bzl", "drake_cc_vector_gen_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") drake_cc_library( name = "cloth_spring_model", diff --git a/examples/multibody/acrobot/BUILD.bazel b/examples/multibody/acrobot/BUILD.bazel index ac41befba41e..c2d1733ff5d9 100644 --- a/examples/multibody/acrobot/BUILD.bazel +++ b/examples/multibody/acrobot/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", "drake_cc_googletest", "drake_cc_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") drake_cc_binary( name = "passive_simulation", diff --git a/examples/multibody/cart_pole/BUILD.bazel b/examples/multibody/cart_pole/BUILD.bazel index f101f9ae808c..c6e69798ade5 100644 --- a/examples/multibody/cart_pole/BUILD.bazel +++ b/examples/multibody/cart_pole/BUILD.bazel @@ -1,3 +1,5 @@ +load("//tools/install:install_data.bzl", "install_data") +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", @@ -5,12 +7,10 @@ load( "drake_cc_library", ) load("//tools/skylark:drake_data.bzl", "models_filegroup") -load("//tools/install:install_data.bzl", "install_data") load( "//tools/vector_gen:vector_gen.bzl", "drake_cc_vector_gen_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/examples/multibody/cylinder_with_multicontact/BUILD.bazel b/examples/multibody/cylinder_with_multicontact/BUILD.bazel index 1a8755b34cfb..f0ff23542c84 100644 --- a/examples/multibody/cylinder_with_multicontact/BUILD.bazel +++ b/examples/multibody/cylinder_with_multicontact/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", "drake_cc_googletest", "drake_cc_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") drake_cc_library( name = "populate_cylinder_plant", diff --git a/examples/multibody/deformable/BUILD.bazel b/examples/multibody/deformable/BUILD.bazel index 4d957882a19f..13cbb4460496 100644 --- a/examples/multibody/deformable/BUILD.bazel +++ b/examples/multibody/deformable/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", "drake_cc_googletest", "drake_cc_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") drake_cc_library( name = "parallel_gripper_controller", diff --git a/examples/multibody/four_bar/BUILD.bazel b/examples/multibody/four_bar/BUILD.bazel index b43c5768a2a8..3914637e89a2 100644 --- a/examples/multibody/four_bar/BUILD.bazel +++ b/examples/multibody/four_bar/BUILD.bazel @@ -1,8 +1,8 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", ) -load("//tools/lint:lint.bzl", "add_lint_tests") filegroup( name = "models", diff --git a/examples/multibody/inclined_plane_with_body/BUILD.bazel b/examples/multibody/inclined_plane_with_body/BUILD.bazel index 2842a78db9c3..8ed12a3718f7 100644 --- a/examples/multibody/inclined_plane_with_body/BUILD.bazel +++ b/examples/multibody/inclined_plane_with_body/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", "drake_cc_googletest", "drake_cc_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") drake_cc_binary( name = "inclined_plane_with_body", diff --git a/examples/multibody/pendulum/BUILD.bazel b/examples/multibody/pendulum/BUILD.bazel index 04df2880ef01..557f4285fde7 100644 --- a/examples/multibody/pendulum/BUILD.bazel +++ b/examples/multibody/pendulum/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", "drake_cc_googletest", "drake_cc_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") drake_cc_binary( name = "passive_simulation", diff --git a/examples/multibody/rolling_sphere/BUILD.bazel b/examples/multibody/rolling_sphere/BUILD.bazel index 93479e148959..3984be18e168 100644 --- a/examples/multibody/rolling_sphere/BUILD.bazel +++ b/examples/multibody/rolling_sphere/BUILD.bazel @@ -1,12 +1,12 @@ -package(default_visibility = ["//visibility:public"]) - +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", "drake_cc_googletest", "drake_cc_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") + +package(default_visibility = ["//visibility:public"]) drake_cc_library( name = "populate_ball_plant", diff --git a/examples/multibody/strandbeest/BUILD.bazel b/examples/multibody/strandbeest/BUILD.bazel index e4047e279bea..f2c1002aa1d0 100644 --- a/examples/multibody/strandbeest/BUILD.bazel +++ b/examples/multibody/strandbeest/BUILD.bazel @@ -1,7 +1,7 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load("//tools/skylark:drake_cc.bzl", "drake_cc_binary") load("//tools/skylark:drake_py.bzl", "drake_py_unittest") load("//tools/workspace/ros_xacro_internal:defs.bzl", "xacro_filegroup") -load("//tools/lint:lint.bzl", "add_lint_tests") xacro_filegroup( name = "StrandbeestModels", diff --git a/examples/pendulum/BUILD.bazel b/examples/pendulum/BUILD.bazel index 447d9562712e..13fb68de5aab 100644 --- a/examples/pendulum/BUILD.bazel +++ b/examples/pendulum/BUILD.bazel @@ -1,3 +1,5 @@ +load("//tools/install:install_data.bzl", "install_data") +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", @@ -5,8 +7,6 @@ load( "drake_cc_library", ) load("//tools/skylark:drake_data.bzl", "models_filegroup") -load("//tools/install:install_data.bzl", "install_data") -load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/vector_gen:vector_gen.bzl", "drake_cc_vector_gen_library", diff --git a/examples/planar_gripper/BUILD.bazel b/examples/planar_gripper/BUILD.bazel index 3b53ffa3ae48..2f2cb32ea56c 100644 --- a/examples/planar_gripper/BUILD.bazel +++ b/examples/planar_gripper/BUILD.bazel @@ -1,4 +1,5 @@ load("//tools/install:install.bzl", "install") +load("//tools/install:install_data.bzl", "install_data") load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", @@ -7,7 +8,6 @@ load( "drake_cc_library", ) load("//tools/skylark:drake_data.bzl", "models_filegroup") -load("//tools/install:install_data.bzl", "install_data") load( "//tools/vector_gen:vector_gen.bzl", "drake_cc_vector_gen_library", diff --git a/examples/quadrotor/BUILD.bazel b/examples/quadrotor/BUILD.bazel index 10ebbcaf1e4e..87b8253697e4 100644 --- a/examples/quadrotor/BUILD.bazel +++ b/examples/quadrotor/BUILD.bazel @@ -1,3 +1,5 @@ +load("//tools/install:install_data.bzl", "install_data") +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", @@ -5,8 +7,6 @@ load( "drake_cc_library", ) load("//tools/skylark:drake_data.bzl", "models_filegroup") -load("//tools/install:install_data.bzl", "install_data") -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/examples/rimless_wheel/BUILD.bazel b/examples/rimless_wheel/BUILD.bazel index 613ccb6716e6..a7e6d5d8511b 100644 --- a/examples/rimless_wheel/BUILD.bazel +++ b/examples/rimless_wheel/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", "drake_cc_googletest", "drake_cc_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/vector_gen:vector_gen.bzl", "drake_cc_vector_gen_library", diff --git a/examples/rod2d/BUILD.bazel b/examples/rod2d/BUILD.bazel index aef397a9c929..eb5ca6efc3e8 100644 --- a/examples/rod2d/BUILD.bazel +++ b/examples/rod2d/BUILD.bazel @@ -1,3 +1,4 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", @@ -8,7 +9,6 @@ load( "//tools/vector_gen:vector_gen.bzl", "drake_cc_vector_gen_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/examples/scene_graph/BUILD.bazel b/examples/scene_graph/BUILD.bazel index 7af66af65530..1d1735258927 100644 --- a/examples/scene_graph/BUILD.bazel +++ b/examples/scene_graph/BUILD.bazel @@ -1,15 +1,15 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", "drake_cc_googletest", "drake_cc_library", ) +load("//tools/skylark:test_tags.bzl", "vtk_test_tags") load( "//tools/vector_gen:vector_gen.bzl", "drake_cc_vector_gen_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") -load("//tools/skylark:test_tags.bzl", "vtk_test_tags") drake_cc_vector_gen_library( name = "bouncing_ball_vector", diff --git a/examples/simple_gripper/BUILD.bazel b/examples/simple_gripper/BUILD.bazel index 6bbbb1aa5352..89fdabc75e5c 100644 --- a/examples/simple_gripper/BUILD.bazel +++ b/examples/simple_gripper/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", "drake_cc_googletest", "drake_cc_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") # Place model files for this example within their own group. # We can use these models in other bazel projects by adding the dependency diff --git a/examples/van_der_pol/BUILD.bazel b/examples/van_der_pol/BUILD.bazel index 1d7f126510e1..bf3478aff91b 100644 --- a/examples/van_der_pol/BUILD.bazel +++ b/examples/van_der_pol/BUILD.bazel @@ -1,3 +1,4 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", @@ -8,7 +9,6 @@ load( "//tools/skylark:drake_py.bzl", "drake_py_binary", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:private"]) diff --git a/examples/zmp/BUILD.bazel b/examples/zmp/BUILD.bazel index 26692ac956ff..ce5ec7519f0d 100644 --- a/examples/zmp/BUILD.bazel +++ b/examples/zmp/BUILD.bazel @@ -1,8 +1,8 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", ) -load("//tools/lint:lint.bzl", "add_lint_tests") drake_cc_binary( name = "zmp_example", diff --git a/geometry/BUILD.bazel b/geometry/BUILD.bazel index 4747eb6461be..4ada6cdd765f 100644 --- a/geometry/BUILD.bazel +++ b/geometry/BUILD.bazel @@ -1,3 +1,5 @@ +load("//tools/install:install.bzl", "install", "install_files") +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", @@ -9,8 +11,6 @@ load( "//tools/skylark:drake_py.bzl", "drake_py_binary", ) -load("//tools/install:install.bzl", "install", "install_files") -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/geometry/benchmarking/BUILD.bazel b/geometry/benchmarking/BUILD.bazel index 8d715a2d710e..cbb8bf51ef31 100644 --- a/geometry/benchmarking/BUILD.bazel +++ b/geometry/benchmarking/BUILD.bazel @@ -1,10 +1,10 @@ -load("//tools/skylark:drake_cc.bzl", "drake_cc_binary") +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/performance:defs.bzl", "drake_cc_googlebench_binary", "drake_py_experiment_binary", ) -load("//tools/lint:lint.bzl", "add_lint_tests") +load("//tools/skylark:drake_cc.bzl", "drake_cc_binary") load("//tools/skylark:test_tags.bzl", "vtk_test_tags") package(default_visibility = ["//visibility:private"]) diff --git a/geometry/optimization/BUILD.bazel b/geometry/optimization/BUILD.bazel index 5ecba6a514d0..fdf14e7bbafd 100644 --- a/geometry/optimization/BUILD.bazel +++ b/geometry/optimization/BUILD.bazel @@ -1,3 +1,4 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", @@ -8,7 +9,6 @@ load( "//tools/skylark:test_tags.bzl", "mosek_test_tags", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/geometry/optimization/dev/BUILD.bazel b/geometry/optimization/dev/BUILD.bazel index a8407dd21eb1..0f6fac3fb2a8 100644 --- a/geometry/optimization/dev/BUILD.bazel +++ b/geometry/optimization/dev/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:test_tags.bzl", "mosek_test_tags", diff --git a/geometry/profiling/BUILD.bazel b/geometry/profiling/BUILD.bazel index f4575102f52a..00656324b3b2 100644 --- a/geometry/profiling/BUILD.bazel +++ b/geometry/profiling/BUILD.bazel @@ -1,8 +1,8 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", ) -load("//tools/lint:lint.bzl", "add_lint_tests") drake_cc_binary( name = "contact_surface_rigid_bowl_soft_ball", diff --git a/geometry/proximity/BUILD.bazel b/geometry/proximity/BUILD.bazel index 109ef49c5011..8e5f05ca8949 100644 --- a/geometry/proximity/BUILD.bazel +++ b/geometry/proximity/BUILD.bazel @@ -1,3 +1,4 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", @@ -9,7 +10,6 @@ load( "//tools/skylark:drake_py.bzl", "drake_py_unittest", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/geometry/query_results/BUILD.bazel b/geometry/query_results/BUILD.bazel index a259257c1eee..571d50038176 100644 --- a/geometry/query_results/BUILD.bazel +++ b/geometry/query_results/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/geometry/render/BUILD.bazel b/geometry/render/BUILD.bazel index 8ae9e3d0ddc9..ac82e5c3ea5d 100644 --- a/geometry/render/BUILD.bazel +++ b/geometry/render/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") load("//tools/skylark:test_tags.bzl", "vtk_test_tags") package(default_visibility = ["//visibility:public"]) diff --git a/geometry/render/shaders/BUILD.bazel b/geometry/render/shaders/BUILD.bazel index 3627af49942c..cc9c31037a41 100644 --- a/geometry/render/shaders/BUILD.bazel +++ b/geometry/render/shaders/BUILD.bazel @@ -1,9 +1,9 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/geometry/render_gl/BUILD.bazel b/geometry/render_gl/BUILD.bazel index 9e00515ae8eb..1e4dbb73fc2a 100644 --- a/geometry/render_gl/BUILD.bazel +++ b/geometry/render_gl/BUILD.bazel @@ -1,3 +1,4 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", @@ -6,7 +7,6 @@ load( "drake_cc_library_linux_only", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") load("//tools/skylark:test_tags.bzl", "vtk_test_tags") # This render_gl package is only implemented on Linux. For macOS, only the diff --git a/geometry/render_gltf_client/BUILD.bazel b/geometry/render_gltf_client/BUILD.bazel index 96ed9907d507..a4a0963f97f7 100644 --- a/geometry/render_gltf_client/BUILD.bazel +++ b/geometry/render_gltf_client/BUILD.bazel @@ -1,3 +1,4 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", @@ -10,7 +11,6 @@ load( "drake_py_binary", "drake_py_unittest", ) -load("//tools/lint:lint.bzl", "add_lint_tests") load("//tools/skylark:test_tags.bzl", "vtk_test_tags") package(default_visibility = ["//visibility:private"]) diff --git a/geometry/render_vtk/BUILD.bazel b/geometry/render_vtk/BUILD.bazel index 619a9ef835ff..589a536f00bf 100644 --- a/geometry/render_vtk/BUILD.bazel +++ b/geometry/render_vtk/BUILD.bazel @@ -1,11 +1,11 @@ load("@bazel_skylib//rules:copy_file.bzl", "copy_file") +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") load("//tools/skylark:test_tags.bzl", "vtk_test_tags") package(default_visibility = ["//visibility:private"]) diff --git a/geometry/test_utilities/BUILD.bazel b/geometry/test_utilities/BUILD.bazel index 3dd4d267f153..90bfde3d19fa 100644 --- a/geometry/test_utilities/BUILD.bazel +++ b/geometry/test_utilities/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/lcm/BUILD.bazel b/lcm/BUILD.bazel index 12cac6c22316..bec5617460b5 100644 --- a/lcm/BUILD.bazel +++ b/lcm/BUILD.bazel @@ -1,3 +1,4 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", @@ -10,7 +11,6 @@ load( "drake_py_test", "drake_py_unittest", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/lcmtypes/BUILD.bazel b/lcmtypes/BUILD.bazel index 93ffc8418ffe..d70ce572fdc0 100644 --- a/lcmtypes/BUILD.bazel +++ b/lcmtypes/BUILD.bazel @@ -1,6 +1,5 @@ -package(default_visibility = ["//visibility:public"]) - load("//tools/install:install.bzl", "install") +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", @@ -11,20 +10,21 @@ load( "//tools/skylark:drake_java.bzl", "drake_java_binary", ) -load( - "//tools/skylark:drake_py.bzl", - "drake_py_library", - "drake_py_test", -) load( "//tools/skylark:drake_lcm.bzl", "drake_lcm_cc_library", "drake_lcm_java_library", "drake_lcm_py_library", ) +load( + "//tools/skylark:drake_py.bzl", + "drake_py_library", + "drake_py_test", +) load("//tools/workspace:generate_file.bzl", "generate_file") load(":defs.bzl", "ALL_LCM_SRCS") -load("//tools/lint:lint.bzl", "add_lint_tests") + +package(default_visibility = ["//visibility:public"]) # Search for all *.lcm files. _GLOB_ALL_LCM_SRCS = sorted(glob(["*.lcm"])) diff --git a/manipulation/BUILD.bazel b/manipulation/BUILD.bazel index 14f3155023f7..e36ea02af3ef 100644 --- a/manipulation/BUILD.bazel +++ b/manipulation/BUILD.bazel @@ -1,8 +1,8 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_py.bzl", "drake_py_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") drake_py_library( name = "module_py", diff --git a/manipulation/kinova_jaco/BUILD.bazel b/manipulation/kinova_jaco/BUILD.bazel index f9c7b43651ec..e969073be21a 100644 --- a/manipulation/kinova_jaco/BUILD.bazel +++ b/manipulation/kinova_jaco/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package( default_visibility = ["//visibility:public"], diff --git a/manipulation/kuka_iiwa/BUILD.bazel b/manipulation/kuka_iiwa/BUILD.bazel index 1df4e19c9bdc..73b9b0862a98 100644 --- a/manipulation/kuka_iiwa/BUILD.bazel +++ b/manipulation/kuka_iiwa/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package( default_visibility = ["//visibility:public"], diff --git a/manipulation/schunk_wsg/BUILD.bazel b/manipulation/schunk_wsg/BUILD.bazel index e19a3c6a98de..e866fabc4400 100644 --- a/manipulation/schunk_wsg/BUILD.bazel +++ b/manipulation/schunk_wsg/BUILD.bazel @@ -1,3 +1,4 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", @@ -8,7 +9,6 @@ load( "//tools/vector_gen:vector_gen.bzl", "drake_cc_vector_gen_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package( default_visibility = ["//visibility:public"], diff --git a/manipulation/util/BUILD.bazel b/manipulation/util/BUILD.bazel index e77857cae684..bd6fa7a7e6e5 100644 --- a/manipulation/util/BUILD.bazel +++ b/manipulation/util/BUILD.bazel @@ -1,3 +1,4 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", @@ -11,7 +12,6 @@ load( "drake_py_library", "drake_py_unittest", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/math/BUILD.bazel b/math/BUILD.bazel index 27b74a861f2d..b295c8c449dd 100644 --- a/math/BUILD.bazel +++ b/math/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/multibody/benchmarking/BUILD.bazel b/multibody/benchmarking/BUILD.bazel index d5da709521df..9c708db7e2bb 100644 --- a/multibody/benchmarking/BUILD.bazel +++ b/multibody/benchmarking/BUILD.bazel @@ -1,3 +1,4 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/performance:defs.bzl", "drake_cc_googlebench_binary", @@ -7,7 +8,6 @@ load( "//tools/skylark:test_tags.bzl", "gurobi_test_tags", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/multibody/benchmarks/acrobot/BUILD.bazel b/multibody/benchmarks/acrobot/BUILD.bazel index cc803cf23328..8de3800dd194 100644 --- a/multibody/benchmarks/acrobot/BUILD.bazel +++ b/multibody/benchmarks/acrobot/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/multibody/benchmarks/chaotic_babyboot/MG/BUILD.bazel b/multibody/benchmarks/chaotic_babyboot/MG/BUILD.bazel index d38066047b2c..3d19558abf62 100644 --- a/multibody/benchmarks/chaotic_babyboot/MG/BUILD.bazel +++ b/multibody/benchmarks/chaotic_babyboot/MG/BUILD.bazel @@ -1,9 +1,9 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package( default_visibility = [ diff --git a/multibody/benchmarks/free_body/BUILD.bazel b/multibody/benchmarks/free_body/BUILD.bazel index e1c46533a9d7..190cd1a86630 100644 --- a/multibody/benchmarks/free_body/BUILD.bazel +++ b/multibody/benchmarks/free_body/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:private"]) diff --git a/multibody/benchmarks/inclined_plane/BUILD.bazel b/multibody/benchmarks/inclined_plane/BUILD.bazel index 1461bfcae489..658f31bdfb2d 100644 --- a/multibody/benchmarks/inclined_plane/BUILD.bazel +++ b/multibody/benchmarks/inclined_plane/BUILD.bazel @@ -1,9 +1,9 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") # Because there are no meaninfully distinct components in this package, the # only public target we will offer is our drake_cc_package_library. diff --git a/multibody/benchmarks/kuka_iiwa_robot/BUILD.bazel b/multibody/benchmarks/kuka_iiwa_robot/BUILD.bazel index b91b6c1a4fed..7a1e06a23f84 100644 --- a/multibody/benchmarks/kuka_iiwa_robot/BUILD.bazel +++ b/multibody/benchmarks/kuka_iiwa_robot/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") # Because there are no meaninfully distinct components in this package, the # only public target we will offer is our drake_cc_package_library. diff --git a/multibody/benchmarks/kuka_iiwa_robot/MG/BUILD.bazel b/multibody/benchmarks/kuka_iiwa_robot/MG/BUILD.bazel index 1d056d6ee8b9..25f429c90396 100644 --- a/multibody/benchmarks/kuka_iiwa_robot/MG/BUILD.bazel +++ b/multibody/benchmarks/kuka_iiwa_robot/MG/BUILD.bazel @@ -1,9 +1,9 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package( default_visibility = [ diff --git a/multibody/benchmarks/mass_damper_spring/BUILD.bazel b/multibody/benchmarks/mass_damper_spring/BUILD.bazel index cddc6b3b51a5..bd2173ff3eca 100644 --- a/multibody/benchmarks/mass_damper_spring/BUILD.bazel +++ b/multibody/benchmarks/mass_damper_spring/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") # Because there are no meaninfully distinct components in this package, the # only public target we will offer is our drake_cc_package_library. diff --git a/multibody/benchmarks/pendulum/BUILD.bazel b/multibody/benchmarks/pendulum/BUILD.bazel index de242cfc541c..7efe106b7fa1 100644 --- a/multibody/benchmarks/pendulum/BUILD.bazel +++ b/multibody/benchmarks/pendulum/BUILD.bazel @@ -1,9 +1,9 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") # Because there are no meaninfully distinct components in this package, the # only public target we will offer is our drake_cc_package_library. diff --git a/multibody/constraint/BUILD.bazel b/multibody/constraint/BUILD.bazel index 52a302b76d52..1d3bb3da9fb1 100644 --- a/multibody/constraint/BUILD.bazel +++ b/multibody/constraint/BUILD.bazel @@ -1,3 +1,4 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", @@ -5,7 +6,6 @@ load( "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/multibody/contact_solvers/BUILD.bazel b/multibody/contact_solvers/BUILD.bazel index 2ec6de1ffe88..b6f2563e0830 100644 --- a/multibody/contact_solvers/BUILD.bazel +++ b/multibody/contact_solvers/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package( default_visibility = ["//visibility:public"], diff --git a/multibody/contact_solvers/sap/BUILD.bazel b/multibody/contact_solvers/sap/BUILD.bazel index 4669345829dc..7f7900416855 100644 --- a/multibody/contact_solvers/sap/BUILD.bazel +++ b/multibody/contact_solvers/sap/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package( default_visibility = ["//visibility:public"], diff --git a/multibody/hydroelastics/BUILD.bazel b/multibody/hydroelastics/BUILD.bazel index c1740e0eeaae..8cc98cf99de4 100644 --- a/multibody/hydroelastics/BUILD.bazel +++ b/multibody/hydroelastics/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/multibody/inverse_kinematics/BUILD.bazel b/multibody/inverse_kinematics/BUILD.bazel index d28dc988a0cf..a6873344acda 100644 --- a/multibody/inverse_kinematics/BUILD.bazel +++ b/multibody/inverse_kinematics/BUILD.bazel @@ -1,3 +1,4 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", @@ -7,7 +8,6 @@ load( "drake_cc_test", ) load("//tools/skylark:test_tags.bzl", "gurobi_test_tags") -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/multibody/math/BUILD.bazel b/multibody/math/BUILD.bazel index 7a592125c082..ec17f474abde 100644 --- a/multibody/math/BUILD.bazel +++ b/multibody/math/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package( default_visibility = ["//visibility:public"], diff --git a/multibody/meshcat/BUILD.bazel b/multibody/meshcat/BUILD.bazel index 24e973f3eb7c..8cfd04c51bf4 100644 --- a/multibody/meshcat/BUILD.bazel +++ b/multibody/meshcat/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/multibody/optimization/BUILD.bazel b/multibody/optimization/BUILD.bazel index 6cdc5a5831da..1d2d3fd23ddb 100644 --- a/multibody/optimization/BUILD.bazel +++ b/multibody/optimization/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/multibody/parsing/BUILD.bazel b/multibody/parsing/BUILD.bazel index 8a5475cccc26..d76213d37c9d 100644 --- a/multibody/parsing/BUILD.bazel +++ b/multibody/parsing/BUILD.bazel @@ -1,3 +1,5 @@ +load("//tools/install:install.bzl", "install_files") +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", @@ -10,8 +12,6 @@ load( "drake_py_library", "drake_py_unittest", ) -load("//tools/install:install.bzl", "install_files") -load("//tools/lint:lint.bzl", "add_lint_tests") load("//tools/workspace:forward_files.bzl", "forward_files") load( "//tools/workspace/dm_control_internal:files.bzl", diff --git a/multibody/plant/BUILD.bazel b/multibody/plant/BUILD.bazel index ab6bd11012c6..0f2fcc0f6e42 100644 --- a/multibody/plant/BUILD.bazel +++ b/multibody/plant/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package( default_visibility = ["//visibility:public"], diff --git a/multibody/plant/images/BUILD.bazel b/multibody/plant/images/BUILD.bazel index 5549d6088e63..3dec8b501a8e 100644 --- a/multibody/plant/images/BUILD.bazel +++ b/multibody/plant/images/BUILD.bazel @@ -1,5 +1,5 @@ -load("//tools/skylark:drake_py.bzl", "drake_py_unittest") load("//tools/lint:lint.bzl", "add_lint_tests") +load("//tools/skylark:drake_py.bzl", "drake_py_unittest") PYTHON_SCRIPTS = [ "ideal_stiction.py", diff --git a/multibody/plant/test_utilities/BUILD.bazel b/multibody/plant/test_utilities/BUILD.bazel index 8cb9dcb30047..754ee6cef72e 100644 --- a/multibody/plant/test_utilities/BUILD.bazel +++ b/multibody/plant/test_utilities/BUILD.bazel @@ -1,9 +1,9 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/multibody/rational/BUILD.bazel b/multibody/rational/BUILD.bazel index 570cc123ce20..d58f14d8e9eb 100644 --- a/multibody/rational/BUILD.bazel +++ b/multibody/rational/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package( default_visibility = ["//visibility:public"], diff --git a/multibody/test_utilities/BUILD.bazel b/multibody/test_utilities/BUILD.bazel index c42270fe5bc7..00d4b3dac051 100644 --- a/multibody/test_utilities/BUILD.bazel +++ b/multibody/test_utilities/BUILD.bazel @@ -1,9 +1,9 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/multibody/topology/BUILD.bazel b/multibody/topology/BUILD.bazel index e268ba461580..dc44d997bd70 100644 --- a/multibody/topology/BUILD.bazel +++ b/multibody/topology/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package( default_visibility = ["//visibility:public"], diff --git a/multibody/tree/BUILD.bazel b/multibody/tree/BUILD.bazel index d97252b5935a..549be027dfa3 100644 --- a/multibody/tree/BUILD.bazel +++ b/multibody/tree/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package( default_visibility = ["//visibility:public"], diff --git a/multibody/triangle_quadrature/BUILD.bazel b/multibody/triangle_quadrature/BUILD.bazel index 665b5bd63635..3ff9621bdad9 100644 --- a/multibody/triangle_quadrature/BUILD.bazel +++ b/multibody/triangle_quadrature/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package( default_visibility = ["//multibody:__subpackages__"], diff --git a/perception/BUILD.bazel b/perception/BUILD.bazel index f761739de1d3..bd64a7beb3c9 100644 --- a/perception/BUILD.bazel +++ b/perception/BUILD.bazel @@ -1,3 +1,4 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", @@ -5,7 +6,6 @@ load( "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/perception/benchmarking/BUILD.bazel b/perception/benchmarking/BUILD.bazel index 0f802ac90e5d..77998a984e70 100644 --- a/perception/benchmarking/BUILD.bazel +++ b/perception/benchmarking/BUILD.bazel @@ -1,8 +1,8 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:private"]) diff --git a/planning/BUILD.bazel b/planning/BUILD.bazel index 7b4cf85f9795..e971d3fc1c5a 100644 --- a/planning/BUILD.bazel +++ b/planning/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/planning/graph_algorithms/BUILD.bazel b/planning/graph_algorithms/BUILD.bazel index 99feb0847a3d..94e685b73be9 100644 --- a/planning/graph_algorithms/BUILD.bazel +++ b/planning/graph_algorithms/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/planning/iris/BUILD.bazel b/planning/iris/BUILD.bazel index 9aa9eb4cf710..2eb97d508498 100644 --- a/planning/iris/BUILD.bazel +++ b/planning/iris/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") load("//tools/skylark:test_tags.bzl", "gurobi_test_tags", "mosek_test_tags") package(default_visibility = ["//visibility:public"]) diff --git a/planning/test_utilities/BUILD.bazel b/planning/test_utilities/BUILD.bazel index 50b6972788cf..0bb0f7f76956 100644 --- a/planning/test_utilities/BUILD.bazel +++ b/planning/test_utilities/BUILD.bazel @@ -1,9 +1,9 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/planning/trajectory_optimization/BUILD.bazel b/planning/trajectory_optimization/BUILD.bazel index 7d9b3b19f56c..0570bf9883c0 100644 --- a/planning/trajectory_optimization/BUILD.bazel +++ b/planning/trajectory_optimization/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/solvers/BUILD.bazel b/solvers/BUILD.bazel index 2898c0ca02c6..39fd59ae2399 100644 --- a/solvers/BUILD.bazel +++ b/solvers/BUILD.bazel @@ -1,3 +1,4 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", @@ -10,18 +11,17 @@ load( "//tools/skylark:drake_py.bzl", "drake_py_unittest", ) +load( + "//tools/skylark:test_tags.bzl", + "gurobi_test_tags", + "mosek_test_tags", +) load( ":defs.bzl", "drake_cc_optional_googletest", "drake_cc_optional_library", "drake_cc_variant_library", ) -load( - "//tools/skylark:test_tags.bzl", - "gurobi_test_tags", - "mosek_test_tags", -) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/solvers/benchmarking/BUILD.bazel b/solvers/benchmarking/BUILD.bazel index 5145d28176ad..f71a5edcdfbf 100644 --- a/solvers/benchmarking/BUILD.bazel +++ b/solvers/benchmarking/BUILD.bazel @@ -1,9 +1,9 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/performance:defs.bzl", "drake_cc_googlebench_binary", "drake_py_experiment_binary", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/solvers/defs.bzl b/solvers/defs.bzl index b4bd363e6cbd..de7d429c1ebf 100644 --- a/solvers/defs.bzl +++ b/solvers/defs.bzl @@ -1,5 +1,5 @@ -load("//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library") load("//tools/lint:cpplint.bzl", "cpplint_extra") +load("//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library") # This file contains macros that help abbreviate patterns that frequently # appear in the solvers folder. diff --git a/solvers/test_utilities/BUILD.bazel b/solvers/test_utilities/BUILD.bazel index aed3a02ef220..53e4bd5c82b3 100644 --- a/solvers/test_utilities/BUILD.bazel +++ b/solvers/test_utilities/BUILD.bazel @@ -1,9 +1,9 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/systems/analysis/BUILD.bazel b/systems/analysis/BUILD.bazel index 49c88a279ed4..1fa2e74c6256 100644 --- a/systems/analysis/BUILD.bazel +++ b/systems/analysis/BUILD.bazel @@ -1,3 +1,4 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", @@ -9,7 +10,6 @@ load( "//tools/skylark:drake_py.bzl", "drake_py_unittest", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/systems/analysis/test_utilities/BUILD.bazel b/systems/analysis/test_utilities/BUILD.bazel index 1ba7ae8d9cf3..662fd38e8de6 100644 --- a/systems/analysis/test_utilities/BUILD.bazel +++ b/systems/analysis/test_utilities/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/systems/benchmarking/BUILD.bazel b/systems/benchmarking/BUILD.bazel index feee0f9da326..f91715aa5975 100644 --- a/systems/benchmarking/BUILD.bazel +++ b/systems/benchmarking/BUILD.bazel @@ -1,9 +1,9 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/performance:defs.bzl", "drake_cc_googlebench_binary", "drake_py_experiment_binary", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:private"]) diff --git a/systems/controllers/BUILD.bazel b/systems/controllers/BUILD.bazel index c3946fff25bd..fcecc33e2a11 100644 --- a/systems/controllers/BUILD.bazel +++ b/systems/controllers/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/systems/controllers/test_utilities/BUILD.bazel b/systems/controllers/test_utilities/BUILD.bazel index b78779bfbb8d..ecaf1f24feb7 100644 --- a/systems/controllers/test_utilities/BUILD.bazel +++ b/systems/controllers/test_utilities/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/systems/estimators/BUILD.bazel b/systems/estimators/BUILD.bazel index c403a982620a..7a02ba806603 100644 --- a/systems/estimators/BUILD.bazel +++ b/systems/estimators/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/systems/framework/BUILD.bazel b/systems/framework/BUILD.bazel index 5044ae5fba45..05aa0a1741ed 100644 --- a/systems/framework/BUILD.bazel +++ b/systems/framework/BUILD.bazel @@ -1,14 +1,14 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") +load( + "//tools/skylark:alias.bzl", + "drake_cc_hdrs_forwarding_library", +) load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load( - "//tools/skylark:alias.bzl", - "drake_cc_hdrs_forwarding_library", -) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/systems/framework/test_utilities/BUILD.bazel b/systems/framework/test_utilities/BUILD.bazel index 59a9c379cb54..ddad8aa5f809 100644 --- a/systems/framework/test_utilities/BUILD.bazel +++ b/systems/framework/test_utilities/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/systems/lcm/BUILD.bazel b/systems/lcm/BUILD.bazel index 1743f1908819..e7879e8f7229 100644 --- a/systems/lcm/BUILD.bazel +++ b/systems/lcm/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/systems/optimization/BUILD.bazel b/systems/optimization/BUILD.bazel index 3493f0fdb3a0..4bf293fd457b 100644 --- a/systems/optimization/BUILD.bazel +++ b/systems/optimization/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/systems/primitives/BUILD.bazel b/systems/primitives/BUILD.bazel index 4a9570b556ed..7f235074b6fa 100644 --- a/systems/primitives/BUILD.bazel +++ b/systems/primitives/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/systems/rendering/BUILD.bazel b/systems/rendering/BUILD.bazel index a33f04c39954..b57d47e7d2b8 100644 --- a/systems/rendering/BUILD.bazel +++ b/systems/rendering/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/systems/sensors/BUILD.bazel b/systems/sensors/BUILD.bazel index 41b340f6eb9d..237223622777 100644 --- a/systems/sensors/BUILD.bazel +++ b/systems/sensors/BUILD.bazel @@ -1,3 +1,8 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") +load( + "//tools/skylark:alias.bzl", + "drake_cc_library_aliases", +) load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", @@ -5,16 +10,11 @@ load( "drake_cc_library", "drake_cc_package_library", ) +load("//tools/skylark:test_tags.bzl", "vtk_test_tags") load( "//tools/vector_gen:vector_gen.bzl", "drake_cc_vector_gen_library", ) -load( - "//tools/skylark:alias.bzl", - "drake_cc_library_aliases", -) -load("//tools/lint:lint.bzl", "add_lint_tests") -load("//tools/skylark:test_tags.bzl", "vtk_test_tags") package(default_visibility = ["//visibility:public"]) diff --git a/systems/sensors/test_utilities/BUILD.bazel b/systems/sensors/test_utilities/BUILD.bazel index 1c05efd443dd..54237db8146a 100644 --- a/systems/sensors/test_utilities/BUILD.bazel +++ b/systems/sensors/test_utilities/BUILD.bazel @@ -1,9 +1,9 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"]) diff --git a/tools/BUILD.bazel b/tools/BUILD.bazel index 0781f1175159..031403b84df0 100644 --- a/tools/BUILD.bazel +++ b/tools/BUILD.bazel @@ -1,10 +1,10 @@ -load("//tools/skylark:drake_py.bzl", "drake_py_binary") -load("//tools/skylark:py.bzl", "py_binary", "py_library") load("//tools/lint:lint.bzl", "add_lint_tests") +load("//tools/skylark:drake_py.bzl", "drake_py_binary") load( "//tools/skylark:drake_runfiles_binary.bzl", "drake_runfiles_binary", ) +load("//tools/skylark:py.bzl", "py_binary", "py_library") package(default_visibility = ["//visibility:public"]) diff --git a/tools/clion/BUILD.bazel b/tools/clion/BUILD.bazel index ef72b6fa98cc..691dabfcd0e8 100644 --- a/tools/clion/BUILD.bazel +++ b/tools/clion/BUILD.bazel @@ -1,5 +1,5 @@ -load("//tools/skylark:drake_py.bzl", "drake_py_unittest") load("//tools/lint:lint.bzl", "add_lint_tests") +load("//tools/skylark:drake_py.bzl", "drake_py_unittest") drake_py_unittest( name = "bazel_wrapper_test", diff --git a/tools/clion/aspect.bzl b/tools/clion/aspect.bzl index 029b7410438e..84c281e16a24 100644 --- a/tools/clion/aspect.bzl +++ b/tools/clion/aspect.bzl @@ -1,18 +1,18 @@ -# Load the relevant upstream methods. +# Load the magic. load( - "@intellij_aspect//:intellij_info_impl.bzl", - "intellij_info_aspect_impl", - "make_intellij_info_aspect", + "@drake_clion_environment//:path.bzl", + "additional_transitive_quote_include_directory", ) load( "@intellij_aspect//:intellij_info_bundled.bzl", "tool_label", ) -# Load the magic. +# Load the relevant upstream methods. load( - "@drake_clion_environment//:path.bzl", - "additional_transitive_quote_include_directory", + "@intellij_aspect//:intellij_info_impl.bzl", + "intellij_info_aspect_impl", + "make_intellij_info_aspect", ) # This is part of the `semantics` hooks provided by intellij_aspect's aspect. diff --git a/tools/install/BUILD.bazel b/tools/install/BUILD.bazel index 0baa974205fe..fec31acec903 100644 --- a/tools/install/BUILD.bazel +++ b/tools/install/BUILD.bazel @@ -1,12 +1,12 @@ -package(default_visibility = ["//visibility:public"]) - -load("//tools/skylark:py.bzl", "py_library") load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_py.bzl", "drake_py_binary", "drake_py_unittest", ) +load("//tools/skylark:py.bzl", "py_library") + +package(default_visibility = ["//visibility:public"]) py_library( name = "module_py", diff --git a/tools/install/bazel/BUILD.bazel b/tools/install/bazel/BUILD.bazel index e58ec01da83e..a6f83f9d49f2 100644 --- a/tools/install/bazel/BUILD.bazel +++ b/tools/install/bazel/BUILD.bazel @@ -1,4 +1,5 @@ load("//tools/install:install.bzl", "install") +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_py.bzl", "drake_py_binary", @@ -7,7 +8,6 @@ load( ":generate_installed_files_manifest.bzl", "generate_installed_files_manifest", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:private"]) diff --git a/tools/install/bazel/generate_installed_files_manifest.bzl b/tools/install/bazel/generate_installed_files_manifest.bzl index 2dae090f6cd3..52a09877698f 100644 --- a/tools/install/bazel/generate_installed_files_manifest.bzl +++ b/tools/install/bazel/generate_installed_files_manifest.bzl @@ -1,6 +1,6 @@ +load("@python//:version.bzl", "PYTHON_SITE_PACKAGES_RELPATH") load("//tools/install:install.bzl", "InstallInfo") load("//tools/skylark:pathutils.bzl", "basename") -load("@python//:version.bzl", "PYTHON_SITE_PACKAGES_RELPATH") def _impl(ctx): known_non_runfiles = [ diff --git a/tools/install/dummy/BUILD.bazel b/tools/install/dummy/BUILD.bazel index 26107c694f65..357a1d180703 100644 --- a/tools/install/dummy/BUILD.bazel +++ b/tools/install/dummy/BUILD.bazel @@ -1,6 +1,5 @@ -load("//tools/skylark:py.bzl", "py_library") -load("//tools/lint:lint.bzl", "add_lint_tests") load("//tools/install:install.bzl", "install") +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_binary", @@ -11,6 +10,7 @@ load( "//tools/skylark:drake_py.bzl", "drake_py_unittest", ) +load("//tools/skylark:py.bzl", "py_library") package(default_visibility = ["//tools/install:__subpackages__"]) diff --git a/tools/install/install.bzl b/tools/install/install.bzl index 9f74b787199a..a203a9020a51 100644 --- a/tools/install/install.bzl +++ b/tools/install/install.bzl @@ -1,4 +1,5 @@ -load("//tools/skylark:py.bzl", "py_binary") +load("@python//:version.bzl", "PYTHON_SITE_PACKAGES_RELPATH", "PYTHON_VERSION") +load("@rules_license//rules:providers.bzl", "LicenseInfo") load("//tools/skylark:drake_java.bzl", "MainClassInfo") load("//tools/skylark:drake_py.bzl", "drake_py_test") load( @@ -7,8 +8,7 @@ load( "join_paths", "output_path", ) -load("@python//:version.bzl", "PYTHON_SITE_PACKAGES_RELPATH", "PYTHON_VERSION") -load("@rules_license//rules:providers.bzl", "LicenseInfo") +load("//tools/skylark:py.bzl", "py_binary") InstallInfo = provider() diff --git a/tools/install/libdrake/BUILD.bazel b/tools/install/libdrake/BUILD.bazel index 210a12bcdef7..b536a01283cd 100644 --- a/tools/install/libdrake/BUILD.bazel +++ b/tools/install/libdrake/BUILD.bazel @@ -1,12 +1,15 @@ -package(default_visibility = ["//visibility:private"]) - load("@bazel_skylib//lib:selects.bzl", "selects") load( "@python//:version.bzl", "PYTHON_SITE_PACKAGES_RELPATH", "PYTHON_VERSION", ) +load( + "//third_party:com_github_bazelbuild_rules_cc/whole_archive.bzl", + "cc_whole_archive_library", +) load("//tools/install:install.bzl", "install", "install_cmake_config") +load("//tools/lint:lint.bzl", "add_lint_tests") load("//tools/skylark:cc.bzl", "cc_binary", "cc_library") load( "//tools/skylark:drake_cc.bzl", @@ -19,13 +22,10 @@ load( "//tools/skylark:drake_py.bzl", "drake_py_unittest", ) -load(":header_lint.bzl", "cc_check_allowed_headers") -load("//tools/lint:lint.bzl", "add_lint_tests") load(":build_components.bzl", "LIBDRAKE_COMPONENTS") -load( - "//third_party:com_github_bazelbuild_rules_cc/whole_archive.bzl", - "cc_whole_archive_library", -) +load(":header_lint.bzl", "cc_check_allowed_headers") + +package(default_visibility = ["//visibility:private"]) genrule( name = "drake_config_cmake_expand", diff --git a/tools/jupyter/BUILD.bazel b/tools/jupyter/BUILD.bazel index fac00ba77225..b6db4034a203 100644 --- a/tools/jupyter/BUILD.bazel +++ b/tools/jupyter/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/jupyter:jupyter_py.bzl", "drake_jupyter_py_binary") load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_py.bzl", "drake_py_library", "drake_py_unittest", ) -load("//tools/jupyter:jupyter_py.bzl", "drake_jupyter_py_binary") drake_py_library( name = "module_py", diff --git a/tools/jupyter/jupyter_py.bzl b/tools/jupyter/jupyter_py.bzl index 11d176daad50..be89745a66e0 100644 --- a/tools/jupyter/jupyter_py.bzl +++ b/tools/jupyter/jupyter_py.bzl @@ -1,9 +1,9 @@ -load("//tools/workspace:generate_file.bzl", "generate_file") load( "//tools/skylark:drake_py.bzl", "drake_py_binary", "drake_py_test", ) +load("//tools/workspace:generate_file.bzl", "generate_file") # Generate file to bake file path in rather than require it as an argument. _JUPYTER_PY_TEMPLATE = """ diff --git a/tools/lint/BUILD.bazel b/tools/lint/BUILD.bazel index 3431a71b9942..78a594926a8a 100644 --- a/tools/lint/BUILD.bazel +++ b/tools/lint/BUILD.bazel @@ -1,5 +1,3 @@ -package(default_visibility = ["//visibility:public"]) - load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/lint:python_lint.bzl", @@ -13,6 +11,8 @@ load( "drake_py_unittest", ) +package(default_visibility = ["//visibility:public"]) + py_library( name = "module_py", srcs = ["__init__.py"], diff --git a/tools/performance/BUILD.bazel b/tools/performance/BUILD.bazel index 72e66f8a5a62..c0278370dd2c 100644 --- a/tools/performance/BUILD.bazel +++ b/tools/performance/BUILD.bazel @@ -1,4 +1,5 @@ load("@bazel_skylib//lib:selects.bzl", "selects") +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_library", @@ -7,7 +8,6 @@ load( "//tools/skylark:drake_py.bzl", "drake_py_binary", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = [ # All benchmarks should be in folders named "benchmarking". diff --git a/tools/release_engineering/BUILD.bazel b/tools/release_engineering/BUILD.bazel index 2c1b3190927c..9cabcc36eb90 100644 --- a/tools/release_engineering/BUILD.bazel +++ b/tools/release_engineering/BUILD.bazel @@ -1,8 +1,8 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_py.bzl", "drake_py_binary", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:private"]) diff --git a/tools/release_engineering/dev/BUILD.bazel b/tools/release_engineering/dev/BUILD.bazel index f7c726c3618b..dd31f1b4023c 100644 --- a/tools/release_engineering/dev/BUILD.bazel +++ b/tools/release_engineering/dev/BUILD.bazel @@ -1,8 +1,8 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_py.bzl", "drake_py_binary", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:private"]) diff --git a/tools/skylark/BUILD.bazel b/tools/skylark/BUILD.bazel index 2df05bfd86ee..eda24b841fc2 100644 --- a/tools/skylark/BUILD.bazel +++ b/tools/skylark/BUILD.bazel @@ -1,6 +1,6 @@ -load("//tools/skylark:py.bzl", "py_binary") -load("//tools/skylark:drake_py.bzl", "drake_py_unittest") load("//tools/lint:lint.bzl", "add_lint_tests") +load("//tools/skylark:drake_py.bzl", "drake_py_unittest") +load("//tools/skylark:py.bzl", "py_binary") package(default_visibility = ["//visibility:public"]) diff --git a/tools/skylark/alias.bzl b/tools/skylark/alias.bzl index cf13bc007239..ce16af344386 100644 --- a/tools/skylark/alias.bzl +++ b/tools/skylark/alias.bzl @@ -1,6 +1,6 @@ load("//tools/skylark:cc.bzl", "cc_library") -load("//tools/skylark:py.bzl", "py_binary", "py_library") load("//tools/skylark:drake_cc.bzl", "drake_cc_library") +load("//tools/skylark:py.bzl", "py_binary", "py_library") load("//tools/workspace:generate_file.bzl", "generate_file") def _combine_relative_labels(arg_list, arg_map): diff --git a/tools/skylark/drake_lcm.bzl b/tools/skylark/drake_lcm.bzl index 53b1cfe1ce3d..2ae3a7394df7 100644 --- a/tools/skylark/drake_lcm.bzl +++ b/tools/skylark/drake_lcm.bzl @@ -1,14 +1,14 @@ +load( + "//tools/skylark:drake_cc.bzl", + "drake_installed_headers", + "installed_headers_for_drake_deps", +) load( "//tools/workspace/lcm:lcm.bzl", "lcm_cc_library", "lcm_java_library", "lcm_py_library", ) -load( - "//tools/skylark:drake_cc.bzl", - "drake_installed_headers", - "installed_headers_for_drake_deps", -) def drake_lcm_cc_library( name, diff --git a/tools/skylark/drake_py.bzl b/tools/skylark/drake_py.bzl index 190ce62930f5..4a02874acf17 100644 --- a/tools/skylark/drake_py.bzl +++ b/tools/skylark/drake_py.bzl @@ -1,10 +1,10 @@ -load("//tools/skylark:py.bzl", "py_binary", "py_library", "py_test") load( "//tools/skylark:kwargs.bzl", "amend", "incorporate_allow_network", "incorporate_num_threads", ) +load("//tools/skylark:py.bzl", "py_binary", "py_library", "py_test") def drake_py_library( name, diff --git a/tools/skylark/pybind.bzl b/tools/skylark/pybind.bzl index bf41d1332a77..3be795d84466 100644 --- a/tools/skylark/pybind.bzl +++ b/tools/skylark/pybind.bzl @@ -1,10 +1,10 @@ -load("//tools/skylark:cc.bzl", "cc_binary") -load("//tools/skylark:py.bzl", "py_library") load("@cc//:compiler.bzl", "COMPILER_ID") load("@python//:version.bzl", "PYTHON_EXTENSION_SUFFIX") load("//tools/install:install.bzl", "install") +load("//tools/skylark:cc.bzl", "cc_binary") load("//tools/skylark:drake_cc.bzl", "drake_cc_binary", "drake_cc_googletest") load("//tools/skylark:drake_py.bzl", "drake_py_library", "drake_py_test") +load("//tools/skylark:py.bzl", "py_library") EXTRA_PYBIND_COPTS = [ # GCC and Clang don't always agree / succeed when inferring storage diff --git a/tools/vector_gen/BUILD.bazel b/tools/vector_gen/BUILD.bazel index 2acd2af3b747..9458a7b087fe 100644 --- a/tools/vector_gen/BUILD.bazel +++ b/tools/vector_gen/BUILD.bazel @@ -1,25 +1,25 @@ -package(default_visibility = ["//visibility:public"]) - -load( - "//tools/vector_gen:vector_gen.bzl", - "drake_cc_vector_gen_library", - "vector_gen_lcm_sources", -) +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", ) +load( + "//tools/skylark:drake_lcm.bzl", + "drake_lcm_cc_library", +) load( "//tools/skylark:drake_py.bzl", "drake_py_binary", "drake_py_library", ) load( - "//tools/skylark:drake_lcm.bzl", - "drake_lcm_cc_library", + "//tools/vector_gen:vector_gen.bzl", + "drake_cc_vector_gen_library", + "vector_gen_lcm_sources", ) -load("//tools/lint:lint.bzl", "add_lint_tests") + +package(default_visibility = ["//visibility:public"]) drake_py_binary( name = "lcm_vector_gen", diff --git a/tools/wheel/BUILD.bazel b/tools/wheel/BUILD.bazel index 8558daf00da5..e4dbf859ee1c 100644 --- a/tools/wheel/BUILD.bazel +++ b/tools/wheel/BUILD.bazel @@ -1,5 +1,5 @@ -load("//tools/skylark:drake_py.bzl", "drake_py_binary") load("//tools/lint:lint.bzl", "add_lint_tests") +load("//tools/skylark:drake_py.bzl", "drake_py_binary") exports_files( glob(["**"]), diff --git a/tools/workspace/BUILD.bazel b/tools/workspace/BUILD.bazel index 10e19da53bbf..e51b1e6cd642 100644 --- a/tools/workspace/BUILD.bazel +++ b/tools/workspace/BUILD.bazel @@ -1,8 +1,8 @@ -load("//tools/skylark:py.bzl", "py_library") load("//tools/install:check_licenses.bzl", "check_licenses") load("//tools/install:install.bzl", "install") -load("//tools/skylark:drake_py.bzl", "drake_py_binary", "drake_py_test") load("//tools/lint:lint.bzl", "add_lint_tests") +load("//tools/skylark:drake_py.bzl", "drake_py_binary", "drake_py_test") +load("//tools/skylark:py.bzl", "py_library") py_library( name = "module_py", diff --git a/tools/workspace/bazelisk/BUILD.bazel b/tools/workspace/bazelisk/BUILD.bazel index a1b7a45839fa..d28d9e53e944 100644 --- a/tools/workspace/bazelisk/BUILD.bazel +++ b/tools/workspace/bazelisk/BUILD.bazel @@ -1,5 +1,5 @@ -load("//tools/skylark:drake_py.bzl", "drake_py_unittest") load("//tools/lint:lint.bzl", "add_lint_tests") +load("//tools/skylark:drake_py.bzl", "drake_py_unittest") drake_py_unittest( name = "lint_test", diff --git a/tools/workspace/buildifier/repository.bzl b/tools/workspace/buildifier/repository.bzl index 55aeb28bd28d..20fa54a92f52 100644 --- a/tools/workspace/buildifier/repository.bzl +++ b/tools/workspace/buildifier/repository.bzl @@ -6,12 +6,12 @@ def buildifier_repository( github_release_attachments( name = name, repository = "bazelbuild/buildtools", - commit = "v6.4.0", + commit = "v7.1.0", attachments = { - "buildifier-darwin-amd64": "eeb47b2de27f60efe549348b183fac24eae80f1479e8b06cac0799c486df5bed", # noqa - "buildifier-darwin-arm64": "fa07ba0d20165917ca4cc7609f9b19a8a4392898148b7babdf6bb2a7dd963f05", # noqa - "buildifier-linux-amd64": "be63db12899f48600bad94051123b1fd7b5251e7661b9168582ce52396132e92", # noqa - "buildifier-linux-arm64": "18540fc10f86190f87485eb86963e603e41fa022f88a2d1b0cf52ff252b5e1dd", # noqa + "buildifier-darwin-amd64": "7002a1f7e9c41fed24210abddfaed0f46f1abc5730faace03ef9ebdd2b9e125e", # noqa + "buildifier-darwin-arm64": "1e6f4959a7b0024f3adda80d92fa84e0193a99d234bb00cb13d900f80c08bd6c", # noqa + "buildifier-linux-amd64": "edc9e05da569cb99a287464664a2350e85e96fd591b86f66c1527870ad96c0da", # noqa + "buildifier-linux-arm64": "89ace4342e3595e4feda9c1ce205542492a33a481a3d0875a1a83448a73c8714", # noqa }, build_file = ":package.BUILD.bazel", mirrors = mirrors, diff --git a/tools/workspace/cc/BUILD.bazel b/tools/workspace/cc/BUILD.bazel index c72f97cf28ff..846415ea2b7f 100644 --- a/tools/workspace/cc/BUILD.bazel +++ b/tools/workspace/cc/BUILD.bazel @@ -1,5 +1,5 @@ -load("//tools/skylark:drake_cc.bzl", "drake_cc_binary") load("//tools/lint:lint.bzl", "add_lint_tests") +load("//tools/skylark:drake_cc.bzl", "drake_cc_binary") # Note that this program is compiled not only by this drake_cc_binary rule # but also separately by the repository.bzl file in this directory. diff --git a/tools/workspace/ccd_internal/package.BUILD.bazel b/tools/workspace/ccd_internal/package.BUILD.bazel index dcc2841d3f76..5ca0b5371e39 100644 --- a/tools/workspace/ccd_internal/package.BUILD.bazel +++ b/tools/workspace/ccd_internal/package.BUILD.bazel @@ -1,15 +1,15 @@ # -*- bazel -*- -load("@drake//tools/skylark:cc.bzl", "cc_library") -load( - "@drake//tools/workspace:cmake_configure_file.bzl", - "cmake_configure_file", -) load("@drake//tools/install:install.bzl", "install") +load("@drake//tools/skylark:cc.bzl", "cc_library") load( "@drake//tools/skylark:drake_cc.bzl", "cc_linkonly_library", ) +load( + "@drake//tools/workspace:cmake_configure_file.bzl", + "cmake_configure_file", +) licenses(["notice"]) # BSD-3-Clause diff --git a/tools/workspace/clarabel_cpp_internal/package.BUILD.bazel b/tools/workspace/clarabel_cpp_internal/package.BUILD.bazel index a74f2496a4ce..09af0773cda0 100644 --- a/tools/workspace/clarabel_cpp_internal/package.BUILD.bazel +++ b/tools/workspace/clarabel_cpp_internal/package.BUILD.bazel @@ -3,8 +3,8 @@ load("@drake//tools/install:install.bzl", "install") load("@drake//tools/skylark:cc.bzl", "cc_library") load("@drake//tools/skylark:cc_hidden.bzl", "cc_wrap_static_archive_hidden") -load("@drake//tools/workspace/crate_universe:defs.bzl", "all_crate_deps") load("@drake//tools/workspace:vendor_cxx.bzl", "cc_library_vendored") +load("@drake//tools/workspace/crate_universe:defs.bzl", "all_crate_deps") load("@rules_rust//rust:defs.bzl", "rust_static_library") package(default_visibility = ["//visibility:private"]) diff --git a/tools/workspace/common_robotics_utilities/package.BUILD.bazel b/tools/workspace/common_robotics_utilities/package.BUILD.bazel index 41d107eeee34..421090030d96 100644 --- a/tools/workspace/common_robotics_utilities/package.BUILD.bazel +++ b/tools/workspace/common_robotics_utilities/package.BUILD.bazel @@ -1,7 +1,7 @@ # -*- bazel -*- -load("@drake//tools/skylark:cc.bzl", "cc_library") load("@drake//tools/install:install.bzl", "install") +load("@drake//tools/skylark:cc.bzl", "cc_library") package(default_visibility = ["//visibility:public"]) diff --git a/tools/workspace/crate_universe/BUILD.bazel b/tools/workspace/crate_universe/BUILD.bazel index 10b923cb59d6..336e9c75ba9d 100644 --- a/tools/workspace/crate_universe/BUILD.bazel +++ b/tools/workspace/crate_universe/BUILD.bazel @@ -1,12 +1,12 @@ -load("//tools/install:install.bzl", "install", "install_license") -load("//tools/workspace/crate_universe:lock/archives.bzl", "ARCHIVES") -load("//tools/lint:lint.bzl", "add_lint_tests") load( "@rules_rust//crate_universe:defs.bzl", "crate", "crates_vendor", "render_config", ) +load("//tools/install:install.bzl", "install", "install_license") +load("//tools/lint:lint.bzl", "add_lint_tests") +load("//tools/workspace/crate_universe:lock/archives.bzl", "ARCHIVES") exports_files(glob(["lock/**"])) diff --git a/tools/workspace/crate_universe/lock/details/BUILD.amd-0.2.2.bazel b/tools/workspace/crate_universe/lock/details/BUILD.amd-0.2.2.bazel index 669350679c19..79eecb9e8067 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.amd-0.2.2.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.amd-0.2.2.bazel @@ -6,9 +6,9 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//rust:defs.bzl", "rust_library") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//rust:defs.bzl", "rust_library") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.autocfg-1.1.0.bazel b/tools/workspace/crate_universe/lock/details/BUILD.autocfg-1.1.0.bazel index 9f565f1e4d4a..a5cc7417e15b 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.autocfg-1.1.0.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.autocfg-1.1.0.bazel @@ -6,9 +6,9 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//rust:defs.bzl", "rust_library") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//rust:defs.bzl", "rust_library") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.blas-0.22.0.bazel b/tools/workspace/crate_universe/lock/details/BUILD.blas-0.22.0.bazel index 8b63fc8f9f50..687ac1525aab 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.blas-0.22.0.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.blas-0.22.0.bazel @@ -6,9 +6,9 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//rust:defs.bzl", "rust_library") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//rust:defs.bzl", "rust_library") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.blas-sys-0.7.1.bazel b/tools/workspace/crate_universe/lock/details/BUILD.blas-sys-0.7.1.bazel index fcf89c529703..1bed25c1616f 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.blas-sys-0.7.1.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.blas-sys-0.7.1.bazel @@ -6,9 +6,9 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//rust:defs.bzl", "rust_library") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//rust:defs.bzl", "rust_library") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.cfg-if-1.0.0.bazel b/tools/workspace/crate_universe/lock/details/BUILD.cfg-if-1.0.0.bazel index d16b51a5c6af..08fc507e0d53 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.cfg-if-1.0.0.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.cfg-if-1.0.0.bazel @@ -6,9 +6,9 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//rust:defs.bzl", "rust_library") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//rust:defs.bzl", "rust_library") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.clarabel-0.6.0.bazel b/tools/workspace/crate_universe/lock/details/BUILD.clarabel-0.6.0.bazel index 95f52d64742b..641a8f16a1a5 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.clarabel-0.6.0.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.clarabel-0.6.0.bazel @@ -6,9 +6,9 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//rust:defs.bzl", "rust_library") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//rust:defs.bzl", "rust_library") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.darling-0.14.4.bazel b/tools/workspace/crate_universe/lock/details/BUILD.darling-0.14.4.bazel index be9db45f05af..c7652ea5d977 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.darling-0.14.4.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.darling-0.14.4.bazel @@ -6,9 +6,9 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//rust:defs.bzl", "rust_library") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//rust:defs.bzl", "rust_library") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.darling_core-0.14.4.bazel b/tools/workspace/crate_universe/lock/details/BUILD.darling_core-0.14.4.bazel index 181cd8fcca28..4f08e9a69eec 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.darling_core-0.14.4.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.darling_core-0.14.4.bazel @@ -6,9 +6,9 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//rust:defs.bzl", "rust_library") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//rust:defs.bzl", "rust_library") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.darling_macro-0.14.4.bazel b/tools/workspace/crate_universe/lock/details/BUILD.darling_macro-0.14.4.bazel index f7b962afd27b..3c8f11f3b763 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.darling_macro-0.14.4.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.darling_macro-0.14.4.bazel @@ -6,9 +6,9 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//rust:defs.bzl", "rust_proc_macro") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//rust:defs.bzl", "rust_proc_macro") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.derive_builder-0.11.2.bazel b/tools/workspace/crate_universe/lock/details/BUILD.derive_builder-0.11.2.bazel index 7c0edd6275e1..cb585fdcb599 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.derive_builder-0.11.2.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.derive_builder-0.11.2.bazel @@ -6,9 +6,9 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//rust:defs.bzl", "rust_library") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//rust:defs.bzl", "rust_library") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.derive_builder_core-0.11.2.bazel b/tools/workspace/crate_universe/lock/details/BUILD.derive_builder_core-0.11.2.bazel index ce1012fcd4cf..71027bfb216d 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.derive_builder_core-0.11.2.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.derive_builder_core-0.11.2.bazel @@ -6,9 +6,9 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//rust:defs.bzl", "rust_library") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//rust:defs.bzl", "rust_library") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.derive_builder_macro-0.11.2.bazel b/tools/workspace/crate_universe/lock/details/BUILD.derive_builder_macro-0.11.2.bazel index 8888ee01447b..394d1a3c1c82 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.derive_builder_macro-0.11.2.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.derive_builder_macro-0.11.2.bazel @@ -6,9 +6,9 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//rust:defs.bzl", "rust_proc_macro") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//rust:defs.bzl", "rust_proc_macro") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.either-1.10.0.bazel b/tools/workspace/crate_universe/lock/details/BUILD.either-1.10.0.bazel index 41d5425a5a11..8ed9fc5146ab 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.either-1.10.0.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.either-1.10.0.bazel @@ -6,9 +6,9 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//rust:defs.bzl", "rust_library") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//rust:defs.bzl", "rust_library") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.enum_dispatch-0.3.12.bazel b/tools/workspace/crate_universe/lock/details/BUILD.enum_dispatch-0.3.12.bazel index 29b7e836e54d..ceb6e650ca81 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.enum_dispatch-0.3.12.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.enum_dispatch-0.3.12.bazel @@ -6,9 +6,9 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//rust:defs.bzl", "rust_proc_macro") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//rust:defs.bzl", "rust_proc_macro") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.fnv-1.0.7.bazel b/tools/workspace/crate_universe/lock/details/BUILD.fnv-1.0.7.bazel index dd18841ab140..9a3a363d1853 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.fnv-1.0.7.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.fnv-1.0.7.bazel @@ -6,9 +6,9 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//rust:defs.bzl", "rust_library") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//rust:defs.bzl", "rust_library") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.ident_case-1.0.1.bazel b/tools/workspace/crate_universe/lock/details/BUILD.ident_case-1.0.1.bazel index fd359cbadcc3..651800638bec 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.ident_case-1.0.1.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.ident_case-1.0.1.bazel @@ -6,9 +6,9 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//rust:defs.bzl", "rust_library") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//rust:defs.bzl", "rust_library") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.itertools-0.11.0.bazel b/tools/workspace/crate_universe/lock/details/BUILD.itertools-0.11.0.bazel index e047290e8f24..14cea0234323 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.itertools-0.11.0.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.itertools-0.11.0.bazel @@ -6,9 +6,9 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//rust:defs.bzl", "rust_library") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//rust:defs.bzl", "rust_library") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.lapack-0.19.0.bazel b/tools/workspace/crate_universe/lock/details/BUILD.lapack-0.19.0.bazel index 12a4c347e4b0..08216a693ea8 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.lapack-0.19.0.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.lapack-0.19.0.bazel @@ -6,9 +6,9 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//rust:defs.bzl", "rust_library") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//rust:defs.bzl", "rust_library") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.lapack-sys-0.14.0.bazel b/tools/workspace/crate_universe/lock/details/BUILD.lapack-sys-0.14.0.bazel index f37f41195ceb..9ccc8850ff6f 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.lapack-sys-0.14.0.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.lapack-sys-0.14.0.bazel @@ -6,9 +6,9 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//rust:defs.bzl", "rust_library") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//rust:defs.bzl", "rust_library") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.lazy_static-1.4.0.bazel b/tools/workspace/crate_universe/lock/details/BUILD.lazy_static-1.4.0.bazel index b9ded6abbfb6..f69920dd740b 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.lazy_static-1.4.0.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.lazy_static-1.4.0.bazel @@ -6,9 +6,9 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//rust:defs.bzl", "rust_library") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//rust:defs.bzl", "rust_library") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.libc-0.2.153.bazel b/tools/workspace/crate_universe/lock/details/BUILD.libc-0.2.153.bazel index 5d9f12ea9681..cee31d11fa3f 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.libc-0.2.153.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.libc-0.2.153.bazel @@ -6,10 +6,10 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//cargo:defs.bzl", "cargo_build_script") -load("@rules_rust//rust:defs.bzl", "rust_library") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.num-complex-0.4.5.bazel b/tools/workspace/crate_universe/lock/details/BUILD.num-complex-0.4.5.bazel index de8c56d6a4a6..39aa9413a96d 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.num-complex-0.4.5.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.num-complex-0.4.5.bazel @@ -6,9 +6,9 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//rust:defs.bzl", "rust_library") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//rust:defs.bzl", "rust_library") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.num-traits-0.2.18.bazel b/tools/workspace/crate_universe/lock/details/BUILD.num-traits-0.2.18.bazel index c1b2f78e6685..06b8899d324e 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.num-traits-0.2.18.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.num-traits-0.2.18.bazel @@ -6,10 +6,10 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//cargo:defs.bzl", "cargo_build_script") -load("@rules_rust//rust:defs.bzl", "rust_library") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.once_cell-1.19.0.bazel b/tools/workspace/crate_universe/lock/details/BUILD.once_cell-1.19.0.bazel index 03bc7fe7bba4..82649d40271b 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.once_cell-1.19.0.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.once_cell-1.19.0.bazel @@ -6,9 +6,9 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//rust:defs.bzl", "rust_library") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//rust:defs.bzl", "rust_library") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.proc-macro2-1.0.78.bazel b/tools/workspace/crate_universe/lock/details/BUILD.proc-macro2-1.0.78.bazel index 5945ada38379..822358623861 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.proc-macro2-1.0.78.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.proc-macro2-1.0.78.bazel @@ -6,10 +6,10 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//cargo:defs.bzl", "cargo_build_script") -load("@rules_rust//rust:defs.bzl", "rust_library") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.quote-1.0.35.bazel b/tools/workspace/crate_universe/lock/details/BUILD.quote-1.0.35.bazel index c69dd6bb3265..5984d05d2b65 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.quote-1.0.35.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.quote-1.0.35.bazel @@ -6,9 +6,9 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//rust:defs.bzl", "rust_library") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//rust:defs.bzl", "rust_library") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.strsim-0.10.0.bazel b/tools/workspace/crate_universe/lock/details/BUILD.strsim-0.10.0.bazel index 02ce9da842f2..2c1af130bd86 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.strsim-0.10.0.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.strsim-0.10.0.bazel @@ -6,9 +6,9 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//rust:defs.bzl", "rust_library") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//rust:defs.bzl", "rust_library") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.syn-1.0.109.bazel b/tools/workspace/crate_universe/lock/details/BUILD.syn-1.0.109.bazel index dfbc16fc30fe..bbf55f8ce998 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.syn-1.0.109.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.syn-1.0.109.bazel @@ -6,10 +6,10 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//cargo:defs.bzl", "cargo_build_script") -load("@rules_rust//rust:defs.bzl", "rust_library") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.syn-2.0.52.bazel b/tools/workspace/crate_universe/lock/details/BUILD.syn-2.0.52.bazel index d4f57b1bb2c6..70a4d91e556c 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.syn-2.0.52.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.syn-2.0.52.bazel @@ -6,9 +6,9 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//rust:defs.bzl", "rust_library") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//rust:defs.bzl", "rust_library") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.thiserror-1.0.57.bazel b/tools/workspace/crate_universe/lock/details/BUILD.thiserror-1.0.57.bazel index 099e97473537..f8687e7150b7 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.thiserror-1.0.57.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.thiserror-1.0.57.bazel @@ -6,10 +6,10 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//cargo:defs.bzl", "cargo_build_script") -load("@rules_rust//rust:defs.bzl", "rust_library") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.thiserror-impl-1.0.57.bazel b/tools/workspace/crate_universe/lock/details/BUILD.thiserror-impl-1.0.57.bazel index 71737e2bb348..6213e26c82d4 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.thiserror-impl-1.0.57.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.thiserror-impl-1.0.57.bazel @@ -6,9 +6,9 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//rust:defs.bzl", "rust_proc_macro") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//rust:defs.bzl", "rust_proc_macro") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/BUILD.unicode-ident-1.0.12.bazel b/tools/workspace/crate_universe/lock/details/BUILD.unicode-ident-1.0.12.bazel index 0b244f960b61..ff90e5daba2b 100644 --- a/tools/workspace/crate_universe/lock/details/BUILD.unicode-ident-1.0.12.bazel +++ b/tools/workspace/crate_universe/lock/details/BUILD.unicode-ident-1.0.12.bazel @@ -6,9 +6,9 @@ # tools/workspace/crate_universe/upgrade.sh ############################################################################### -load("@rules_rust//rust:defs.bzl", "rust_library") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") +load("@rules_rust//rust:defs.bzl", "rust_library") package( default_package_metadata = [ diff --git a/tools/workspace/crate_universe/lock/details/defs.bzl b/tools/workspace/crate_universe/lock/details/defs.bzl index a2f2f149c525..59084f787933 100644 --- a/tools/workspace/crate_universe/lock/details/defs.bzl +++ b/tools/workspace/crate_universe/lock/details/defs.bzl @@ -395,4 +395,3 @@ _CONDITIONS = { } ############################################################################### - diff --git a/tools/workspace/crate_universe/repository.bzl b/tools/workspace/crate_universe/repository.bzl index 98436d4cc499..4ce56bbc86f7 100644 --- a/tools/workspace/crate_universe/repository.bzl +++ b/tools/workspace/crate_universe/repository.bzl @@ -1,6 +1,6 @@ load("@bazel_tools//tools/build_defs/repo:utils.bzl", "patch") -load("//tools/workspace/crate_universe:lock/archives.bzl", "ARCHIVES") load("//tools/workspace:metadata.bzl", "generate_repository_metadata") +load("//tools/workspace/crate_universe:lock/archives.bzl", "ARCHIVES") def _add_mirrors(*, urls, mirrors): # The input `urls` will be a singleton list like this: diff --git a/tools/workspace/csdp_internal/package.BUILD.bazel b/tools/workspace/csdp_internal/package.BUILD.bazel index 803dd6abdb72..ca93f87ecae1 100644 --- a/tools/workspace/csdp_internal/package.BUILD.bazel +++ b/tools/workspace/csdp_internal/package.BUILD.bazel @@ -1,7 +1,7 @@ # -*- bazel -*- -load("@drake//tools/skylark:cc.bzl", "cc_library") load("@drake//tools/install:install.bzl", "install") +load("@drake//tools/skylark:cc.bzl", "cc_library") licenses(["notice"]) # EPL-2.0 diff --git a/tools/workspace/curl_internal/package.BUILD.bazel b/tools/workspace/curl_internal/package.BUILD.bazel index 2acaffa0bbf6..73dbf6752efe 100644 --- a/tools/workspace/curl_internal/package.BUILD.bazel +++ b/tools/workspace/curl_internal/package.BUILD.bazel @@ -1,14 +1,14 @@ # -*- bazel -*- -load( - "@drake//tools/workspace:cmake_configure_file.bzl", - "cmake_configure_file", -) +load("@drake//tools/install:install.bzl", "install") load( "@drake//tools/workspace:check_lists_consistency.bzl", "check_lists_consistency", ) -load("@drake//tools/install:install.bzl", "install") +load( + "@drake//tools/workspace:cmake_configure_file.bzl", + "cmake_configure_file", +) load( "@drake//tools/workspace/curl_internal:cmakedefines.bzl", "CMAKE_DEFINES", diff --git a/tools/workspace/default.bzl b/tools/workspace/default.bzl index 499813e2e14a..a5f378d15645 100644 --- a/tools/workspace/default.bzl +++ b/tools/workspace/default.bzl @@ -1,7 +1,7 @@ load("//tools/workspace:mirrors.bzl", "DEFAULT_MIRRORS") load("//tools/workspace/abseil_cpp_internal:repository.bzl", "abseil_cpp_internal_repository") # noqa -load("//tools/workspace/bazelisk:repository.bzl", "bazelisk_repository") load("//tools/workspace/bazel_skylib:repository.bzl", "bazel_skylib_repository") # noqa +load("//tools/workspace/bazelisk:repository.bzl", "bazelisk_repository") load("//tools/workspace/blas:repository.bzl", "blas_repository") load("//tools/workspace/boost_internal:repository.bzl", "boost_internal_repository") # noqa load("//tools/workspace/build_bazel_apple_support:repository.bzl", "build_bazel_apple_support_repository") # noqa @@ -20,8 +20,8 @@ load("//tools/workspace/conex_internal:repository.bzl", "conex_internal_reposito load("//tools/workspace/crate_universe:repository.bzl", "crate_universe_repositories") # noqa load("//tools/workspace/csdp_internal:repository.bzl", "csdp_internal_repository") # noqa load("//tools/workspace/curl_internal:repository.bzl", "curl_internal_repository") # noqa -load("//tools/workspace/doxygen:repository.bzl", "doxygen_repository") load("//tools/workspace/dm_control_internal:repository.bzl", "dm_control_internal_repository") # noqa +load("//tools/workspace/doxygen:repository.bzl", "doxygen_repository") load("//tools/workspace/drake_models:repository.bzl", "drake_models_repository") # noqa load("//tools/workspace/eigen:repository.bzl", "eigen_repository") load("//tools/workspace/fcl_internal:repository.bzl", "fcl_internal_repository") # noqa diff --git a/tools/workspace/drake_models/BUILD.bazel b/tools/workspace/drake_models/BUILD.bazel index 2c51969b3e7a..83da11e2c21b 100644 --- a/tools/workspace/drake_models/BUILD.bazel +++ b/tools/workspace/drake_models/BUILD.bazel @@ -1,6 +1,6 @@ load("//doc:defs.bzl", "enumerate_filegroup") -load("//tools/skylark:drake_py.bzl", "drake_py_unittest") load("//tools/lint:lint.bzl", "add_lint_tests") +load("//tools/skylark:drake_py.bzl", "drake_py_unittest") enumerate_filegroup( name = "inventory.txt", diff --git a/tools/workspace/fcl_internal/package.BUILD.bazel b/tools/workspace/fcl_internal/package.BUILD.bazel index 912286516696..7172ea50af2b 100644 --- a/tools/workspace/fcl_internal/package.BUILD.bazel +++ b/tools/workspace/fcl_internal/package.BUILD.bazel @@ -1,10 +1,10 @@ # -*- bazel -*- +load("@drake//tools/install:install.bzl", "install") load( "@drake//tools/workspace:cmake_configure_file.bzl", "cmake_configure_file", ) -load("@drake//tools/install:install.bzl", "install") load( "@drake//tools/workspace:generate_export_header.bzl", "generate_export_header", diff --git a/tools/workspace/fmt/package.BUILD.bazel b/tools/workspace/fmt/package.BUILD.bazel index a6acb6b74a72..062940bea2ca 100644 --- a/tools/workspace/fmt/package.BUILD.bazel +++ b/tools/workspace/fmt/package.BUILD.bazel @@ -4,8 +4,8 @@ # source, i.e., when we are not using pkg-config. See repository.bzl for the # logic to select when that occurs. -load("@drake//tools/skylark:cc.bzl", "cc_library") load("@drake//tools/install:install.bzl", "install", "install_files") +load("@drake//tools/skylark:cc.bzl", "cc_library") licenses(["notice"]) # MIT diff --git a/tools/workspace/fmt/repository.bzl b/tools/workspace/fmt/repository.bzl index e13542ec0c8f..6ef9d8877168 100644 --- a/tools/workspace/fmt/repository.bzl +++ b/tools/workspace/fmt/repository.bzl @@ -1,5 +1,5 @@ -load("//tools/workspace:os.bzl", "is_wheel_build") load("//tools/workspace:github.bzl", "setup_github_repository") +load("//tools/workspace:os.bzl", "is_wheel_build") load("//tools/workspace:pkg_config.bzl", "setup_pkg_config_repository") def _impl(repo_ctx): diff --git a/tools/workspace/gz_math_internal/package.BUILD.bazel b/tools/workspace/gz_math_internal/package.BUILD.bazel index 8a31b693ba6c..ef96f4f36735 100644 --- a/tools/workspace/gz_math_internal/package.BUILD.bazel +++ b/tools/workspace/gz_math_internal/package.BUILD.bazel @@ -1,20 +1,20 @@ # -*- bazel -*- +load("@drake//tools/install:install.bzl", "install") +load( + "@drake//tools/workspace:check_lists_consistency.bzl", + "check_lists_consistency", +) load( "@drake//tools/workspace:cmake_configure_file.bzl", "cmake_configure_file", ) +load("@drake//tools/workspace:generate_file.bzl", "generate_file") load( "@drake//tools/workspace:generate_include_header.bzl", "drake_generate_include_header", ) -load( - "@drake//tools/workspace:check_lists_consistency.bzl", - "check_lists_consistency", -) -load("@drake//tools/install:install.bzl", "install") load("@drake//tools/workspace:vendor_cxx.bzl", "cc_library_vendored") -load("@drake//tools/workspace:generate_file.bzl", "generate_file") licenses(["notice"]) # Apache-2.0 diff --git a/tools/workspace/gz_utils_internal/package.BUILD.bazel b/tools/workspace/gz_utils_internal/package.BUILD.bazel index 3e98009b7e92..be10747972bc 100644 --- a/tools/workspace/gz_utils_internal/package.BUILD.bazel +++ b/tools/workspace/gz_utils_internal/package.BUILD.bazel @@ -1,16 +1,16 @@ # -*- bazel -*- -load( - "@drake//tools/workspace:cmake_configure_file.bzl", - "cmake_configure_file", -) +load("@drake//tools/install:install.bzl", "install") load( "@drake//tools/workspace:check_lists_consistency.bzl", "check_lists_consistency", ) -load("@drake//tools/install:install.bzl", "install") -load("@drake//tools/workspace:vendor_cxx.bzl", "cc_library_vendored") +load( + "@drake//tools/workspace:cmake_configure_file.bzl", + "cmake_configure_file", +) load("@drake//tools/workspace:generate_file.bzl", "generate_file") +load("@drake//tools/workspace:vendor_cxx.bzl", "cc_library_vendored") licenses(["notice"]) # Apache-2.0 diff --git a/tools/workspace/ipopt_internal_fromsource/BUILD.bazel b/tools/workspace/ipopt_internal_fromsource/BUILD.bazel index a32fbc7c61df..c9a754174fa3 100644 --- a/tools/workspace/ipopt_internal_fromsource/BUILD.bazel +++ b/tools/workspace/ipopt_internal_fromsource/BUILD.bazel @@ -1,5 +1,5 @@ -load("//tools/skylark:drake_py.bzl", "drake_py_unittest") load("//tools/lint:lint.bzl", "add_lint_tests") +load("//tools/skylark:drake_py.bzl", "drake_py_unittest") # Drake must redistribute any code changes, per Ipopts's EPL-2.0 license. # Here we'll glob all of the patch files from their conventional home. diff --git a/tools/workspace/java.bzl b/tools/workspace/java.bzl index bf83ce0724a8..8a6c3de363bf 100644 --- a/tools/workspace/java.bzl +++ b/tools/workspace/java.bzl @@ -1,8 +1,8 @@ -load("//tools/skylark:pathutils.bzl", "basename") load( "@bazel_tools//tools/build_defs/repo:java.bzl", "java_import_external", ) +load("//tools/skylark:pathutils.bzl", "basename") def _impl(repo_ctx): os_name = repo_ctx.os.name diff --git a/tools/workspace/lcm/example/BUILD.bazel b/tools/workspace/lcm/example/BUILD.bazel index 53d4e9860309..23f4bc15d8ec 100644 --- a/tools/workspace/lcm/example/BUILD.bazel +++ b/tools/workspace/lcm/example/BUILD.bazel @@ -1,13 +1,13 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") +load("//tools/skylark:drake_cc.bzl", "drake_cc_googletest") +load("//tools/skylark:drake_py.bzl", "drake_py_unittest") +load("//tools/skylark:py.bzl", "py_library") load( "//tools/workspace/lcm:lcm.bzl", "lcm_cc_library", "lcm_java_library", "lcm_py_library", ) -load("//tools/skylark:py.bzl", "py_library") -load("//tools/skylark:drake_py.bzl", "drake_py_unittest") -load("//tools/skylark:drake_cc.bzl", "drake_cc_googletest") -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:private"]) diff --git a/tools/workspace/lcm/lcm.bzl b/tools/workspace/lcm/lcm.bzl index 28106d07825d..4085bfa23884 100644 --- a/tools/workspace/lcm/lcm.bzl +++ b/tools/workspace/lcm/lcm.bzl @@ -1,10 +1,10 @@ load("//tools/skylark:cc.bzl", "cc_library") +load("//tools/skylark:pathutils.bzl", "basename", "dirname", "join_paths") load("//tools/skylark:py.bzl", "py_library") load( "//tools/workspace:generate_include_header.bzl", "drake_generate_include_header", ) -load("//tools/skylark:pathutils.bzl", "basename", "dirname", "join_paths") def _lcm_aggregate_hdr( lcm_package, diff --git a/tools/workspace/lcm/package.BUILD.bazel b/tools/workspace/lcm/package.BUILD.bazel index ac5c9adc1547..3f2e3c057105 100644 --- a/tools/workspace/lcm/package.BUILD.bazel +++ b/tools/workspace/lcm/package.BUILD.bazel @@ -1,15 +1,15 @@ # -*- bazel -*- -load("@drake//tools/skylark:drake_java.bzl", "drake_java_binary") +load("@drake//tools/install:install.bzl", "install", "install_files") +load("@drake//tools/lint:python_lint.bzl", "python_lint") load("@drake//tools/skylark:cc.bzl", "cc_binary", "cc_library") +load("@drake//tools/skylark:drake_java.bzl", "drake_java_binary") load("@drake//tools/skylark:py.bzl", "py_library") -load("@drake//tools/workspace:generate_file.bzl", "generate_file") load( "@drake//tools/workspace:generate_export_header.bzl", "generate_export_header", ) -load("@drake//tools/install:install.bzl", "install", "install_files") -load("@drake//tools/lint:python_lint.bzl", "python_lint") +load("@drake//tools/workspace:generate_file.bzl", "generate_file") load("@python//:version.bzl", "PYTHON_EXTENSION_SUFFIX") licenses([ diff --git a/tools/workspace/mosek/repository.bzl b/tools/workspace/mosek/repository.bzl index 40458da94394..b07714648cd6 100644 --- a/tools/workspace/mosek/repository.bzl +++ b/tools/workspace/mosek/repository.bzl @@ -1,7 +1,6 @@ -load("//tools/workspace/mosek:repository_impl.bzl", "repository_impl") - # TODO(jwnimmer-tri) Remove on 2024-07-01 upon completion of deprecation. load("//tools/workspace:mirrors.bzl", "DEFAULT_MIRRORS") +load("//tools/workspace/mosek:repository_impl.bzl", "repository_impl") def mosek_repository( name, diff --git a/tools/workspace/msgpack_internal/package.BUILD.bazel b/tools/workspace/msgpack_internal/package.BUILD.bazel index 295ab4e6cf5e..6aa44e6e92a0 100644 --- a/tools/workspace/msgpack_internal/package.BUILD.bazel +++ b/tools/workspace/msgpack_internal/package.BUILD.bazel @@ -1,7 +1,7 @@ # -*- bazel -*- -load("@drake//tools/skylark:cc.bzl", "cc_library") load("@drake//tools/install:install.bzl", "install") +load("@drake//tools/skylark:cc.bzl", "cc_library") load("@drake//tools/workspace:vendor_cxx.bzl", "cc_library_vendored") licenses(["notice"]) # BSL-1.0 diff --git a/tools/workspace/nanoflann_internal/package.BUILD.bazel b/tools/workspace/nanoflann_internal/package.BUILD.bazel index 5a25d856630f..57b924ce8fbe 100644 --- a/tools/workspace/nanoflann_internal/package.BUILD.bazel +++ b/tools/workspace/nanoflann_internal/package.BUILD.bazel @@ -1,7 +1,7 @@ # -*- bazel -*- -load("@drake//tools/skylark:cc.bzl", "cc_library") load("@drake//tools/install:install.bzl", "install") +load("@drake//tools/skylark:cc.bzl", "cc_library") licenses(["notice"]) # BSD diff --git a/tools/workspace/nlohmann_internal/package.BUILD.bazel b/tools/workspace/nlohmann_internal/package.BUILD.bazel index 791cacc2035d..e70134eb8d1e 100644 --- a/tools/workspace/nlohmann_internal/package.BUILD.bazel +++ b/tools/workspace/nlohmann_internal/package.BUILD.bazel @@ -1,7 +1,7 @@ # -*- bazel -*- -load("@drake//tools/skylark:cc.bzl", "cc_library") load("@drake//tools/install:install.bzl", "install") +load("@drake//tools/skylark:cc.bzl", "cc_library") licenses(["notice"]) # MIT diff --git a/tools/workspace/nlopt_internal/BUILD.bazel b/tools/workspace/nlopt_internal/BUILD.bazel index bd87347cb146..ff1c80a67c3f 100644 --- a/tools/workspace/nlopt_internal/BUILD.bazel +++ b/tools/workspace/nlopt_internal/BUILD.bazel @@ -1,5 +1,5 @@ -load("//tools/skylark:drake_py.bzl", "drake_py_unittest") load("//tools/lint:lint.bzl", "add_lint_tests") +load("//tools/skylark:drake_py.bzl", "drake_py_unittest") exports_files( ["patches/gen_enums.patch"], diff --git a/tools/workspace/nlopt_internal/package.BUILD.bazel b/tools/workspace/nlopt_internal/package.BUILD.bazel index 361ae4d56558..6896cd9ecb0a 100644 --- a/tools/workspace/nlopt_internal/package.BUILD.bazel +++ b/tools/workspace/nlopt_internal/package.BUILD.bazel @@ -1,15 +1,15 @@ # -*- bazel -*- -load("@drake//tools/skylark:cc.bzl", "cc_library") -load( - "@drake//tools/workspace:cmake_configure_file.bzl", - "cmake_configure_file", -) load("@drake//tools/install:install.bzl", "install") +load("@drake//tools/skylark:cc.bzl", "cc_library") load( "@drake//tools/workspace:check_lists_consistency.bzl", "check_lists_consistency", ) +load( + "@drake//tools/workspace:cmake_configure_file.bzl", + "cmake_configure_file", +) load("@drake//tools/workspace:vendor_cxx.bzl", "cc_library_vendored") package(default_visibility = ["//visibility:private"]) diff --git a/tools/workspace/osqp_internal/package.BUILD.bazel b/tools/workspace/osqp_internal/package.BUILD.bazel index 9695dbe87850..a987322b1518 100644 --- a/tools/workspace/osqp_internal/package.BUILD.bazel +++ b/tools/workspace/osqp_internal/package.BUILD.bazel @@ -1,11 +1,11 @@ # -*- bazel -*- +load("@drake//tools/install:install.bzl", "install") load("@drake//tools/skylark:cc.bzl", "cc_library") load( "@drake//tools/workspace:cmake_configure_file.bzl", "cmake_configure_file", ) -load("@drake//tools/install:install.bzl", "install") licenses(["notice"]) # Apache-2.0 diff --git a/tools/workspace/picosha2_internal/package.BUILD.bazel b/tools/workspace/picosha2_internal/package.BUILD.bazel index e9edc65541ee..bb2545d13384 100644 --- a/tools/workspace/picosha2_internal/package.BUILD.bazel +++ b/tools/workspace/picosha2_internal/package.BUILD.bazel @@ -1,7 +1,7 @@ # -*- bazel -*- -load("@drake//tools/skylark:cc.bzl", "cc_library") load("@drake//tools/install:install.bzl", "install") +load("@drake//tools/skylark:cc.bzl", "cc_library") licenses(["notice"]) # MIT diff --git a/tools/workspace/pybind11/BUILD.bazel b/tools/workspace/pybind11/BUILD.bazel index 4c55d3fda4bb..8ea022f3e0d3 100644 --- a/tools/workspace/pybind11/BUILD.bazel +++ b/tools/workspace/pybind11/BUILD.bazel @@ -1,15 +1,15 @@ -load("//tools/skylark:py.bzl", "py_binary", "py_library") load("//tools/lint:lint.bzl", "add_lint_tests") -load( - "//tools/skylark:pybind.bzl", - "generate_pybind_documentation_header", -) -load("//tools/skylark:drake_py.bzl", "drake_py_unittest") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", ) +load("//tools/skylark:drake_py.bzl", "drake_py_unittest") +load("//tools/skylark:py.bzl", "py_binary", "py_library") +load( + "//tools/skylark:pybind.bzl", + "generate_pybind_documentation_header", +) exports_files( [ diff --git a/tools/workspace/pybind11/package.BUILD.bazel b/tools/workspace/pybind11/package.BUILD.bazel index 9791d50f880a..d29d31706972 100644 --- a/tools/workspace/pybind11/package.BUILD.bazel +++ b/tools/workspace/pybind11/package.BUILD.bazel @@ -1,12 +1,12 @@ # -*- bazel -*- -load("@drake//tools/skylark:cc.bzl", "cc_library") load("@drake//tools/install:install.bzl", "install", "install_files") +load("@drake//tools/lint:python_lint.bzl", "python_lint") +load("@drake//tools/skylark:cc.bzl", "cc_library") load( "@drake//tools/workspace:check_lists_consistency.bzl", "check_lists_consistency", ) -load("@drake//tools/lint:python_lint.bzl", "python_lint") licenses(["notice"]) # BSD-3-Clause diff --git a/tools/workspace/qdldl_internal/package.BUILD.bazel b/tools/workspace/qdldl_internal/package.BUILD.bazel index ff6e5c01476b..df56fdc031f5 100644 --- a/tools/workspace/qdldl_internal/package.BUILD.bazel +++ b/tools/workspace/qdldl_internal/package.BUILD.bazel @@ -1,11 +1,11 @@ # -*- bazel -*- +load("@drake//tools/install:install.bzl", "install") load("@drake//tools/skylark:cc.bzl", "cc_library") load( "@drake//tools/workspace:cmake_configure_file.bzl", "cmake_configure_file", ) -load("@drake//tools/install:install.bzl", "install") licenses(["notice"]) # Apache-2.0 diff --git a/tools/workspace/qhull_internal/package.BUILD.bazel b/tools/workspace/qhull_internal/package.BUILD.bazel index 2e867fdd7f45..9b176257558b 100644 --- a/tools/workspace/qhull_internal/package.BUILD.bazel +++ b/tools/workspace/qhull_internal/package.BUILD.bazel @@ -1,7 +1,7 @@ # -*- bazel -*- -load("@drake//tools/skylark:cc.bzl", "cc_library") load("@drake//tools/install:install.bzl", "install") +load("@drake//tools/skylark:cc.bzl", "cc_library") load( "@drake//tools/workspace:vendor_cxx.bzl", "cc_library_vendored", diff --git a/tools/workspace/rules_python/BUILD.bazel b/tools/workspace/rules_python/BUILD.bazel index 1b57e0fd27c2..492dba0e585d 100644 --- a/tools/workspace/rules_python/BUILD.bazel +++ b/tools/workspace/rules_python/BUILD.bazel @@ -1,5 +1,5 @@ -load("//tools/skylark:drake_py.bzl", "drake_py_unittest") load("//tools/lint:lint.bzl", "add_lint_tests") +load("//tools/skylark:drake_py.bzl", "drake_py_unittest") drake_py_unittest( name = "rules_python_internal_test", diff --git a/tools/workspace/rules_python/repository.bzl b/tools/workspace/rules_python/repository.bzl index f0ff6c6c059f..7ceb51c6be3a 100644 --- a/tools/workspace/rules_python/repository.bzl +++ b/tools/workspace/rules_python/repository.bzl @@ -1,8 +1,8 @@ -load("//tools/workspace:github.bzl", "github_archive") load( "//third_party:com_github_bazelbuild_rules_python/internal_config_repo.bzl", # noqa "internal_config_repo", ) +load("//tools/workspace:github.bzl", "github_archive") # Note that we do NOT install a LICENSE file as part of the Drake install # because this repository is required only when building and testing with diff --git a/tools/workspace/rust_toolchain/lock/details/BUILD.rust_darwin_aarch64__aarch64-apple-darwin__stable.bazel b/tools/workspace/rust_toolchain/lock/details/BUILD.rust_darwin_aarch64__aarch64-apple-darwin__stable.bazel index 0914718e464b..99183fa82031 100644 --- a/tools/workspace/rust_toolchain/lock/details/BUILD.rust_darwin_aarch64__aarch64-apple-darwin__stable.bazel +++ b/tools/workspace/rust_toolchain/lock/details/BUILD.rust_darwin_aarch64__aarch64-apple-darwin__stable.bazel @@ -2,9 +2,15 @@ toolchain( name = "toolchain", - exec_compatible_with = ["@platforms//cpu:aarch64","@platforms//os:osx"], - target_compatible_with = ["@platforms//cpu:aarch64","@platforms//os:osx"], + exec_compatible_with = [ + "@platforms//cpu:aarch64", + "@platforms//os:osx", + ], + target_compatible_with = [ + "@platforms//cpu:aarch64", + "@platforms//os:osx", + ], + target_settings = ["@rules_rust//rust/toolchain/channel:stable"], toolchain = "@rust_darwin_aarch64__aarch64-apple-darwin__stable_tools//:rust_toolchain", toolchain_type = "@rules_rust//rust:toolchain", - target_settings = ["@rules_rust//rust/toolchain/channel:stable"], ) diff --git a/tools/workspace/rust_toolchain/lock/details/BUILD.rust_darwin_aarch64__aarch64-apple-darwin__stable_tools.bazel b/tools/workspace/rust_toolchain/lock/details/BUILD.rust_darwin_aarch64__aarch64-apple-darwin__stable_tools.bazel index 4cefc5b0f76e..2ece9758cb6f 100644 --- a/tools/workspace/rust_toolchain/lock/details/BUILD.rust_darwin_aarch64__aarch64-apple-darwin__stable_tools.bazel +++ b/tools/workspace/rust_toolchain/lock/details/BUILD.rust_darwin_aarch64__aarch64-apple-darwin__stable_tools.bazel @@ -1,5 +1,7 @@ # This file is automatically generated by upgrade.py. +load("@rules_rust//rust:toolchain.bzl", "rust_stdlib_filegroup", "rust_toolchain") + filegroup( name = "rustc", srcs = ["bin/rustc"], @@ -38,6 +40,7 @@ filegroup( srcs = ["bin/cargo"], visibility = ["//visibility:public"], ) + filegroup( name = "rustfmt_bin", srcs = ["bin/rustfmt"], @@ -62,8 +65,6 @@ filegroup( visibility = ["//visibility:public"], ) -load("@rules_rust//rust:toolchain.bzl", "rust_stdlib_filegroup") - rust_stdlib_filegroup( name = "rust_std-aarch64-apple-darwin", srcs = glob( @@ -86,30 +87,31 @@ alias( visibility = ["//visibility:public"], ) -load("@rules_rust//rust:toolchain.bzl", "rust_toolchain") - rust_toolchain( name = "rust_toolchain", - rust_doc = "//:rustdoc", - rust_std = "//:rust_std-aarch64-apple-darwin", - rustc = "//:rustc", - rustfmt = "//:rustfmt_bin", + allocator_library = "@rules_rust//ffi/cc/allocator_library", + binary_ext = "", cargo = "//:cargo", clippy_driver = "//:clippy_driver_bin", + default_edition = "", + dylib_ext = ".dylib", + exec_triple = "aarch64-apple-darwin", + extra_exec_rustc_flags = [], + extra_rustc_flags = [], + global_allocator_library = "@rules_rust//ffi/cc/global_allocator_library", llvm_cov = "//:llvm_cov_bin", llvm_profdata = "//:llvm_profdata_bin", + opt_level = None, + rust_doc = "//:rustdoc", + rust_std = "//:rust_std-aarch64-apple-darwin", + rustc = "//:rustc", rustc_lib = "//:rustc_lib", - allocator_library = "@rules_rust//ffi/cc/allocator_library", - global_allocator_library = "@rules_rust//ffi/cc/global_allocator_library", - binary_ext = "", + rustfmt = "//:rustfmt_bin", staticlib_ext = ".a", - dylib_ext = ".dylib", - stdlib_linkflags = ["-lSystem", "-lresolv"], - default_edition = "", - exec_triple = "aarch64-apple-darwin", + stdlib_linkflags = [ + "-lSystem", + "-lresolv", + ], target_triple = "aarch64-apple-darwin", visibility = ["//visibility:public"], - extra_rustc_flags = [], - extra_exec_rustc_flags = [], - opt_level = None, ) diff --git a/tools/workspace/rust_toolchain/lock/details/BUILD.rust_darwin_x86_64__x86_64-apple-darwin__stable.bazel b/tools/workspace/rust_toolchain/lock/details/BUILD.rust_darwin_x86_64__x86_64-apple-darwin__stable.bazel index 25908951d1ed..18cbb04f7949 100644 --- a/tools/workspace/rust_toolchain/lock/details/BUILD.rust_darwin_x86_64__x86_64-apple-darwin__stable.bazel +++ b/tools/workspace/rust_toolchain/lock/details/BUILD.rust_darwin_x86_64__x86_64-apple-darwin__stable.bazel @@ -2,9 +2,15 @@ toolchain( name = "toolchain", - exec_compatible_with = ["@platforms//cpu:x86_64","@platforms//os:osx"], - target_compatible_with = ["@platforms//cpu:x86_64","@platforms//os:osx"], + exec_compatible_with = [ + "@platforms//cpu:x86_64", + "@platforms//os:osx", + ], + target_compatible_with = [ + "@platforms//cpu:x86_64", + "@platforms//os:osx", + ], + target_settings = ["@rules_rust//rust/toolchain/channel:stable"], toolchain = "@rust_darwin_x86_64__x86_64-apple-darwin__stable_tools//:rust_toolchain", toolchain_type = "@rules_rust//rust:toolchain", - target_settings = ["@rules_rust//rust/toolchain/channel:stable"], ) diff --git a/tools/workspace/rust_toolchain/lock/details/BUILD.rust_darwin_x86_64__x86_64-apple-darwin__stable_tools.bazel b/tools/workspace/rust_toolchain/lock/details/BUILD.rust_darwin_x86_64__x86_64-apple-darwin__stable_tools.bazel index 9170c9050906..c1034e61e4a9 100644 --- a/tools/workspace/rust_toolchain/lock/details/BUILD.rust_darwin_x86_64__x86_64-apple-darwin__stable_tools.bazel +++ b/tools/workspace/rust_toolchain/lock/details/BUILD.rust_darwin_x86_64__x86_64-apple-darwin__stable_tools.bazel @@ -1,5 +1,7 @@ # This file is automatically generated by upgrade.py. +load("@rules_rust//rust:toolchain.bzl", "rust_stdlib_filegroup", "rust_toolchain") + filegroup( name = "rustc", srcs = ["bin/rustc"], @@ -38,6 +40,7 @@ filegroup( srcs = ["bin/cargo"], visibility = ["//visibility:public"], ) + filegroup( name = "rustfmt_bin", srcs = ["bin/rustfmt"], @@ -62,8 +65,6 @@ filegroup( visibility = ["//visibility:public"], ) -load("@rules_rust//rust:toolchain.bzl", "rust_stdlib_filegroup") - rust_stdlib_filegroup( name = "rust_std-x86_64-apple-darwin", srcs = glob( @@ -86,30 +87,31 @@ alias( visibility = ["//visibility:public"], ) -load("@rules_rust//rust:toolchain.bzl", "rust_toolchain") - rust_toolchain( name = "rust_toolchain", - rust_doc = "//:rustdoc", - rust_std = "//:rust_std-x86_64-apple-darwin", - rustc = "//:rustc", - rustfmt = "//:rustfmt_bin", + allocator_library = "@rules_rust//ffi/cc/allocator_library", + binary_ext = "", cargo = "//:cargo", clippy_driver = "//:clippy_driver_bin", + default_edition = "", + dylib_ext = ".dylib", + exec_triple = "x86_64-apple-darwin", + extra_exec_rustc_flags = [], + extra_rustc_flags = [], + global_allocator_library = "@rules_rust//ffi/cc/global_allocator_library", llvm_cov = "//:llvm_cov_bin", llvm_profdata = "//:llvm_profdata_bin", + opt_level = None, + rust_doc = "//:rustdoc", + rust_std = "//:rust_std-x86_64-apple-darwin", + rustc = "//:rustc", rustc_lib = "//:rustc_lib", - allocator_library = "@rules_rust//ffi/cc/allocator_library", - global_allocator_library = "@rules_rust//ffi/cc/global_allocator_library", - binary_ext = "", + rustfmt = "//:rustfmt_bin", staticlib_ext = ".a", - dylib_ext = ".dylib", - stdlib_linkflags = ["-lSystem", "-lresolv"], - default_edition = "", - exec_triple = "x86_64-apple-darwin", + stdlib_linkflags = [ + "-lSystem", + "-lresolv", + ], target_triple = "x86_64-apple-darwin", visibility = ["//visibility:public"], - extra_rustc_flags = [], - extra_exec_rustc_flags = [], - opt_level = None, ) diff --git a/tools/workspace/rust_toolchain/lock/details/BUILD.rust_linux_aarch64__aarch64-unknown-linux-gnu__stable.bazel b/tools/workspace/rust_toolchain/lock/details/BUILD.rust_linux_aarch64__aarch64-unknown-linux-gnu__stable.bazel index 808ca52c01ac..43d2f6f8d464 100644 --- a/tools/workspace/rust_toolchain/lock/details/BUILD.rust_linux_aarch64__aarch64-unknown-linux-gnu__stable.bazel +++ b/tools/workspace/rust_toolchain/lock/details/BUILD.rust_linux_aarch64__aarch64-unknown-linux-gnu__stable.bazel @@ -2,9 +2,15 @@ toolchain( name = "toolchain", - exec_compatible_with = ["@platforms//cpu:aarch64","@platforms//os:linux"], - target_compatible_with = ["@platforms//cpu:aarch64","@platforms//os:linux"], + exec_compatible_with = [ + "@platforms//cpu:aarch64", + "@platforms//os:linux", + ], + target_compatible_with = [ + "@platforms//cpu:aarch64", + "@platforms//os:linux", + ], + target_settings = ["@rules_rust//rust/toolchain/channel:stable"], toolchain = "@rust_linux_aarch64__aarch64-unknown-linux-gnu__stable_tools//:rust_toolchain", toolchain_type = "@rules_rust//rust:toolchain", - target_settings = ["@rules_rust//rust/toolchain/channel:stable"], ) diff --git a/tools/workspace/rust_toolchain/lock/details/BUILD.rust_linux_aarch64__aarch64-unknown-linux-gnu__stable_tools.bazel b/tools/workspace/rust_toolchain/lock/details/BUILD.rust_linux_aarch64__aarch64-unknown-linux-gnu__stable_tools.bazel index c8cf4f36732a..b779d6de5519 100644 --- a/tools/workspace/rust_toolchain/lock/details/BUILD.rust_linux_aarch64__aarch64-unknown-linux-gnu__stable_tools.bazel +++ b/tools/workspace/rust_toolchain/lock/details/BUILD.rust_linux_aarch64__aarch64-unknown-linux-gnu__stable_tools.bazel @@ -1,5 +1,7 @@ # This file is automatically generated by upgrade.py. +load("@rules_rust//rust:toolchain.bzl", "rust_stdlib_filegroup", "rust_toolchain") + filegroup( name = "rustc", srcs = ["bin/rustc"], @@ -38,6 +40,7 @@ filegroup( srcs = ["bin/cargo"], visibility = ["//visibility:public"], ) + filegroup( name = "rustfmt_bin", srcs = ["bin/rustfmt"], @@ -62,8 +65,6 @@ filegroup( visibility = ["//visibility:public"], ) -load("@rules_rust//rust:toolchain.bzl", "rust_stdlib_filegroup") - rust_stdlib_filegroup( name = "rust_std-aarch64-unknown-linux-gnu", srcs = glob( @@ -86,30 +87,31 @@ alias( visibility = ["//visibility:public"], ) -load("@rules_rust//rust:toolchain.bzl", "rust_toolchain") - rust_toolchain( name = "rust_toolchain", - rust_doc = "//:rustdoc", - rust_std = "//:rust_std-aarch64-unknown-linux-gnu", - rustc = "//:rustc", - rustfmt = "//:rustfmt_bin", + allocator_library = "@rules_rust//ffi/cc/allocator_library", + binary_ext = "", cargo = "//:cargo", clippy_driver = "//:clippy_driver_bin", + default_edition = "", + dylib_ext = ".so", + exec_triple = "aarch64-unknown-linux-gnu", + extra_exec_rustc_flags = [], + extra_rustc_flags = [], + global_allocator_library = "@rules_rust//ffi/cc/global_allocator_library", llvm_cov = "//:llvm_cov_bin", llvm_profdata = "//:llvm_profdata_bin", + opt_level = None, + rust_doc = "//:rustdoc", + rust_std = "//:rust_std-aarch64-unknown-linux-gnu", + rustc = "//:rustc", rustc_lib = "//:rustc_lib", - allocator_library = "@rules_rust//ffi/cc/allocator_library", - global_allocator_library = "@rules_rust//ffi/cc/global_allocator_library", - binary_ext = "", + rustfmt = "//:rustfmt_bin", staticlib_ext = ".a", - dylib_ext = ".so", - stdlib_linkflags = ["-ldl", "-lpthread"], - default_edition = "", - exec_triple = "aarch64-unknown-linux-gnu", + stdlib_linkflags = [ + "-ldl", + "-lpthread", + ], target_triple = "aarch64-unknown-linux-gnu", visibility = ["//visibility:public"], - extra_rustc_flags = [], - extra_exec_rustc_flags = [], - opt_level = None, ) diff --git a/tools/workspace/rust_toolchain/lock/details/BUILD.rust_linux_x86_64__x86_64-unknown-linux-gnu__stable.bazel b/tools/workspace/rust_toolchain/lock/details/BUILD.rust_linux_x86_64__x86_64-unknown-linux-gnu__stable.bazel index 551659314fb0..ad6f8d9ddaa5 100644 --- a/tools/workspace/rust_toolchain/lock/details/BUILD.rust_linux_x86_64__x86_64-unknown-linux-gnu__stable.bazel +++ b/tools/workspace/rust_toolchain/lock/details/BUILD.rust_linux_x86_64__x86_64-unknown-linux-gnu__stable.bazel @@ -2,9 +2,15 @@ toolchain( name = "toolchain", - exec_compatible_with = ["@platforms//cpu:x86_64","@platforms//os:linux"], - target_compatible_with = ["@platforms//cpu:x86_64","@platforms//os:linux"], + exec_compatible_with = [ + "@platforms//cpu:x86_64", + "@platforms//os:linux", + ], + target_compatible_with = [ + "@platforms//cpu:x86_64", + "@platforms//os:linux", + ], + target_settings = ["@rules_rust//rust/toolchain/channel:stable"], toolchain = "@rust_linux_x86_64__x86_64-unknown-linux-gnu__stable_tools//:rust_toolchain", toolchain_type = "@rules_rust//rust:toolchain", - target_settings = ["@rules_rust//rust/toolchain/channel:stable"], ) diff --git a/tools/workspace/rust_toolchain/lock/details/BUILD.rust_linux_x86_64__x86_64-unknown-linux-gnu__stable_tools.bazel b/tools/workspace/rust_toolchain/lock/details/BUILD.rust_linux_x86_64__x86_64-unknown-linux-gnu__stable_tools.bazel index 99b67bedb65b..a6bb7f72244e 100644 --- a/tools/workspace/rust_toolchain/lock/details/BUILD.rust_linux_x86_64__x86_64-unknown-linux-gnu__stable_tools.bazel +++ b/tools/workspace/rust_toolchain/lock/details/BUILD.rust_linux_x86_64__x86_64-unknown-linux-gnu__stable_tools.bazel @@ -1,5 +1,7 @@ # This file is automatically generated by upgrade.py. +load("@rules_rust//rust:toolchain.bzl", "rust_stdlib_filegroup", "rust_toolchain") + filegroup( name = "rustc", srcs = ["bin/rustc"], @@ -38,6 +40,7 @@ filegroup( srcs = ["bin/cargo"], visibility = ["//visibility:public"], ) + filegroup( name = "rustfmt_bin", srcs = ["bin/rustfmt"], @@ -62,8 +65,6 @@ filegroup( visibility = ["//visibility:public"], ) -load("@rules_rust//rust:toolchain.bzl", "rust_stdlib_filegroup") - rust_stdlib_filegroup( name = "rust_std-x86_64-unknown-linux-gnu", srcs = glob( @@ -86,30 +87,31 @@ alias( visibility = ["//visibility:public"], ) -load("@rules_rust//rust:toolchain.bzl", "rust_toolchain") - rust_toolchain( name = "rust_toolchain", - rust_doc = "//:rustdoc", - rust_std = "//:rust_std-x86_64-unknown-linux-gnu", - rustc = "//:rustc", - rustfmt = "//:rustfmt_bin", + allocator_library = "@rules_rust//ffi/cc/allocator_library", + binary_ext = "", cargo = "//:cargo", clippy_driver = "//:clippy_driver_bin", + default_edition = "", + dylib_ext = ".so", + exec_triple = "x86_64-unknown-linux-gnu", + extra_exec_rustc_flags = [], + extra_rustc_flags = [], + global_allocator_library = "@rules_rust//ffi/cc/global_allocator_library", llvm_cov = "//:llvm_cov_bin", llvm_profdata = "//:llvm_profdata_bin", + opt_level = None, + rust_doc = "//:rustdoc", + rust_std = "//:rust_std-x86_64-unknown-linux-gnu", + rustc = "//:rustc", rustc_lib = "//:rustc_lib", - allocator_library = "@rules_rust//ffi/cc/allocator_library", - global_allocator_library = "@rules_rust//ffi/cc/global_allocator_library", - binary_ext = "", + rustfmt = "//:rustfmt_bin", staticlib_ext = ".a", - dylib_ext = ".so", - stdlib_linkflags = ["-ldl", "-lpthread"], - default_edition = "", - exec_triple = "x86_64-unknown-linux-gnu", + stdlib_linkflags = [ + "-ldl", + "-lpthread", + ], target_triple = "x86_64-unknown-linux-gnu", visibility = ["//visibility:public"], - extra_rustc_flags = [], - extra_exec_rustc_flags = [], - opt_level = None, ) diff --git a/tools/workspace/rust_toolchain/repository.bzl b/tools/workspace/rust_toolchain/repository.bzl index f5a5a9dc04f1..f59447864d30 100644 --- a/tools/workspace/rust_toolchain/repository.bzl +++ b/tools/workspace/rust_toolchain/repository.bzl @@ -1,5 +1,5 @@ -load("//tools/workspace/rust_toolchain:lock/archives.bzl", "ARCHIVES") load("//tools/workspace:metadata.bzl", "generate_repository_metadata") +load("//tools/workspace/rust_toolchain:lock/archives.bzl", "ARCHIVES") def _rust_toolchain_downloads_impl(repo_ctx): # TODO(jwnimmer-tri) It's not clear to me yet whether we really need to diff --git a/tools/workspace/rust_toolchain/upgrade/WORKSPACE.bazel b/tools/workspace/rust_toolchain/upgrade/WORKSPACE.bazel index 8a1cb56f2232..b3bfce7ec4ee 100644 --- a/tools/workspace/rust_toolchain/upgrade/WORKSPACE.bazel +++ b/tools/workspace/rust_toolchain/upgrade/WORKSPACE.bazel @@ -6,10 +6,13 @@ workspace(name = "upgrade") # Load Drake's version of bazel_skylib. -local_repository(name = "drake", path = "../../../..") +local_repository( + name = "drake", + path = "../../../..", +) -load("@drake//tools/workspace/bazel_skylib:repository.bzl", "bazel_skylib_repository") # noqa load("@drake//tools/workspace:mirrors.bzl", "DEFAULT_MIRRORS") +load("@drake//tools/workspace/bazel_skylib:repository.bzl", "bazel_skylib_repository") # noqa bazel_skylib_repository( name = "bazel_skylib", @@ -22,8 +25,8 @@ load("@drake//tools/workspace/rules_rust:repository.bzl", "rules_rust_repository rules_rust_repository( name = "rules_rust", - mirrors = DEFAULT_MIRRORS, extra_patches = ["@upgrade//:rules_rust_tracing.patch"], + mirrors = DEFAULT_MIRRORS, ) # Register the default toolchains from rules_rust. @@ -32,7 +35,7 @@ load("@rules_rust//rust:defs.bzl", "rust_common") load("@rules_rust//rust:repositories.bzl", "rust_register_toolchains") rust_register_toolchains( + extra_target_triples = [], rustfmt_version = rust_common.default_version, versions = [rust_common.default_version], - extra_target_triples = [], ) diff --git a/tools/workspace/scs_internal/package.BUILD.bazel b/tools/workspace/scs_internal/package.BUILD.bazel index f860f08bf0cf..fe6ea492aba6 100644 --- a/tools/workspace/scs_internal/package.BUILD.bazel +++ b/tools/workspace/scs_internal/package.BUILD.bazel @@ -1,7 +1,7 @@ # -*- bazel -*- -load("@drake//tools/skylark:cc.bzl", "cc_library") load("@drake//tools/install:install.bzl", "install") +load("@drake//tools/skylark:cc.bzl", "cc_library") licenses(["notice"]) # MIT diff --git a/tools/workspace/sdformat_internal/BUILD.bazel b/tools/workspace/sdformat_internal/BUILD.bazel index aff1639e866a..e1378c8fe6cc 100644 --- a/tools/workspace/sdformat_internal/BUILD.bazel +++ b/tools/workspace/sdformat_internal/BUILD.bazel @@ -1,6 +1,6 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load("//tools/skylark:drake_cc.bzl", "drake_cc_binary") load("//tools/skylark:drake_py.bzl", "drake_py_unittest") -load("//tools/lint:lint.bzl", "add_lint_tests") exports_files( ["embed_sdf.py"], diff --git a/tools/workspace/sdformat_internal/package.BUILD.bazel b/tools/workspace/sdformat_internal/package.BUILD.bazel index b64e46a79226..845b384fa859 100644 --- a/tools/workspace/sdformat_internal/package.BUILD.bazel +++ b/tools/workspace/sdformat_internal/package.BUILD.bazel @@ -1,24 +1,24 @@ # -*- bazel -*- +load("@drake//tools/install:install.bzl", "install") load( "@drake//tools/skylark:py.bzl", "py_binary", ) +load( + "@drake//tools/workspace:check_lists_consistency.bzl", + "check_lists_consistency", +) load( "@drake//tools/workspace:cmake_configure_file.bzl", "cmake_configure_file", ) +load("@drake//tools/workspace:generate_file.bzl", "generate_file") load( "@drake//tools/workspace:generate_include_header.bzl", "drake_generate_include_header", ) -load( - "@drake//tools/workspace:check_lists_consistency.bzl", - "check_lists_consistency", -) -load("@drake//tools/install:install.bzl", "install") load("@drake//tools/workspace:vendor_cxx.bzl", "cc_library_vendored") -load("@drake//tools/workspace:generate_file.bzl", "generate_file") licenses(["notice"]) # Apache-2.0 AND BSD-3-Clause AND BSL-1.0 diff --git a/tools/workspace/snopt/repository.bzl b/tools/workspace/snopt/repository.bzl index e341b229078b..2217cee47550 100644 --- a/tools/workspace/snopt/repository.bzl +++ b/tools/workspace/snopt/repository.bzl @@ -23,15 +23,15 @@ Arguments: of branch, commit, or tag must be provided. """ +load( + "@bazel_tools//tools/build_defs/repo:git_worker.bzl", + "git_repo", +) load( "@bazel_tools//tools/build_defs/repo:utils.bzl", "patch", "update_attrs", ) -load( - "@bazel_tools//tools/build_defs/repo:git_worker.bzl", - "git_repo", -) load("//tools/workspace:execute.bzl", "execute_and_return") def snopt_repository( diff --git a/tools/workspace/spdlog/package.BUILD.bazel b/tools/workspace/spdlog/package.BUILD.bazel index 0e00c0cc102a..b18a65c0c490 100644 --- a/tools/workspace/spdlog/package.BUILD.bazel +++ b/tools/workspace/spdlog/package.BUILD.bazel @@ -3,8 +3,8 @@ # This file is only used in cases when we need to rebuild spdlog from source. # See repository.bzl for the logic to select when that occurs. -load("@drake//tools/skylark:cc.bzl", "cc_binary", "cc_library") load("@drake//tools/install:install.bzl", "install") +load("@drake//tools/skylark:cc.bzl", "cc_binary", "cc_library") licenses(["notice"]) # MIT diff --git a/tools/workspace/spdlog/repository.bzl b/tools/workspace/spdlog/repository.bzl index 99de74032771..a88135299984 100644 --- a/tools/workspace/spdlog/repository.bzl +++ b/tools/workspace/spdlog/repository.bzl @@ -1,5 +1,5 @@ -load("//tools/workspace:os.bzl", "is_wheel_build") load("//tools/workspace:github.bzl", "setup_github_repository") +load("//tools/workspace:os.bzl", "is_wheel_build") load("//tools/workspace:pkg_config.bzl", "setup_pkg_config_repository") def _impl(repo_ctx): diff --git a/tools/workspace/stduuid_internal/package.BUILD.bazel b/tools/workspace/stduuid_internal/package.BUILD.bazel index a9a21a7ae958..89ca64645350 100644 --- a/tools/workspace/stduuid_internal/package.BUILD.bazel +++ b/tools/workspace/stduuid_internal/package.BUILD.bazel @@ -1,7 +1,7 @@ # -*- bazel -*- -load("@drake//tools/skylark:cc.bzl", "cc_library") load("@drake//tools/install:install.bzl", "install") +load("@drake//tools/skylark:cc.bzl", "cc_library") licenses(["notice"]) # MIT diff --git a/tools/workspace/suitesparse_internal/package.BUILD.bazel b/tools/workspace/suitesparse_internal/package.BUILD.bazel index ec5322897c77..3dda3431ed0a 100644 --- a/tools/workspace/suitesparse_internal/package.BUILD.bazel +++ b/tools/workspace/suitesparse_internal/package.BUILD.bazel @@ -1,7 +1,7 @@ # -*- bazel -*- -load("@drake//tools/skylark:cc.bzl", "cc_library") load("@drake//tools/install:install.bzl", "install") +load("@drake//tools/skylark:cc.bzl", "cc_library") licenses(["notice"]) # BSD-3-Clause diff --git a/tools/workspace/tinyobjloader_internal/package.BUILD.bazel b/tools/workspace/tinyobjloader_internal/package.BUILD.bazel index 7817672d107a..e2e5aacaec53 100644 --- a/tools/workspace/tinyobjloader_internal/package.BUILD.bazel +++ b/tools/workspace/tinyobjloader_internal/package.BUILD.bazel @@ -1,7 +1,7 @@ # -*- bazel -*- -load("@drake//tools/workspace:vendor_cxx.bzl", "cc_library_vendored") load("@drake//tools/install:install.bzl", "install") +load("@drake//tools/workspace:vendor_cxx.bzl", "cc_library_vendored") licenses(["notice"]) # MIT, ISC diff --git a/tools/workspace/tinyxml2_internal/package.BUILD.bazel b/tools/workspace/tinyxml2_internal/package.BUILD.bazel index 199ac48299e5..15a656cc11ab 100644 --- a/tools/workspace/tinyxml2_internal/package.BUILD.bazel +++ b/tools/workspace/tinyxml2_internal/package.BUILD.bazel @@ -1,7 +1,7 @@ # -*- bazel -*- -load("@drake//tools/skylark:cc.bzl", "cc_library") load("@drake//tools/install:install.bzl", "install") +load("@drake//tools/skylark:cc.bzl", "cc_library") licenses(["notice"]) # zlib diff --git a/tools/workspace/usockets_internal/package.BUILD.bazel b/tools/workspace/usockets_internal/package.BUILD.bazel index 9c309da03315..51041acccd0a 100644 --- a/tools/workspace/usockets_internal/package.BUILD.bazel +++ b/tools/workspace/usockets_internal/package.BUILD.bazel @@ -1,7 +1,7 @@ # -*- bazel -*- -load("@drake//tools/skylark:cc.bzl", "cc_library") load("@drake//tools/install:install.bzl", "install") +load("@drake//tools/skylark:cc.bzl", "cc_library") licenses(["notice"]) # Apache 2.0 diff --git a/tools/workspace/uwebsockets_internal/package.BUILD.bazel b/tools/workspace/uwebsockets_internal/package.BUILD.bazel index ee27ce202516..7534b95698af 100644 --- a/tools/workspace/uwebsockets_internal/package.BUILD.bazel +++ b/tools/workspace/uwebsockets_internal/package.BUILD.bazel @@ -1,7 +1,7 @@ # -*- bazel -*- -load("@drake//tools/skylark:cc.bzl", "cc_library") load("@drake//tools/install:install.bzl", "install") +load("@drake//tools/skylark:cc.bzl", "cc_library") licenses(["notice"]) # Apache 2.0 diff --git a/tools/workspace/vtk_internal/package.BUILD.bazel b/tools/workspace/vtk_internal/package.BUILD.bazel index a02840e37ca8..b9852c4abf5f 100644 --- a/tools/workspace/vtk_internal/package.BUILD.bazel +++ b/tools/workspace/vtk_internal/package.BUILD.bazel @@ -1,7 +1,7 @@ # -*- bazel -*- -load("@drake//tools/skylark:cc.bzl", "cc_library") load("@drake//tools/install:install.bzl", "install") +load("@drake//tools/skylark:cc.bzl", "cc_library") load( "@drake//tools/workspace/vtk_internal:rules.bzl", "compile_all_modules", diff --git a/tools/workspace/vtk_internal/repository.bzl b/tools/workspace/vtk_internal/repository.bzl index ebd71f22a26c..3accc9a5cc7f 100644 --- a/tools/workspace/vtk_internal/repository.bzl +++ b/tools/workspace/vtk_internal/repository.bzl @@ -1,11 +1,11 @@ -load( - "//tools/workspace:github.bzl", - "setup_github_repository", -) load( "//tools/workspace:execute.bzl", "execute_or_fail", ) +load( + "//tools/workspace:github.bzl", + "setup_github_repository", +) def parse_module(repo_ctx, subdir): """Parses and returns a vtk.module file as a dict. diff --git a/tools/workspace/vtk_internal/rules.bzl b/tools/workspace/vtk_internal/rules.bzl index f842e960a4e0..728466466ad0 100644 --- a/tools/workspace/vtk_internal/rules.bzl +++ b/tools/workspace/vtk_internal/rules.bzl @@ -1,11 +1,11 @@ +load("@vtk_internal//:modules.bzl", "MODULES", "PLATFORM") +load("@vtk_internal//:settings.bzl", "MODULE_SETTINGS") load("//tools/skylark:cc.bzl", "cc_library") -load("//tools/workspace:generate_file.bzl", "generate_file") load( "//tools/workspace:cmake_configure_file.bzl", "cmake_configure_files", ) -load("@vtk_internal//:modules.bzl", "MODULES", "PLATFORM") -load("@vtk_internal//:settings.bzl", "MODULE_SETTINGS") +load("//tools/workspace:generate_file.bzl", "generate_file") # You can manually set this to True, to get some feedback during upgrades. _VERBOSE = False diff --git a/tutorials/BUILD.bazel b/tutorials/BUILD.bazel index 3f930ecd704e..718974dd2c96 100644 --- a/tutorials/BUILD.bazel +++ b/tutorials/BUILD.bazel @@ -1,7 +1,7 @@ -load("//tools/skylark:drake_py.bzl", "drake_py_test") -load("//tools/jupyter:jupyter_py.bzl", "drake_jupyter_py_binary") load("//tools/install:install.bzl", "install", "install_files") +load("//tools/jupyter:jupyter_py.bzl", "drake_jupyter_py_binary") load("//tools/lint:lint.bzl", "add_lint_tests") +load("//tools/skylark:drake_py.bzl", "drake_py_test") drake_jupyter_py_binary( name = "index", diff --git a/visualization/BUILD.bazel b/visualization/BUILD.bazel index 4c5380b85203..ca43755596b5 100644 --- a/visualization/BUILD.bazel +++ b/visualization/BUILD.bazel @@ -1,10 +1,10 @@ +load("//tools/lint:lint.bzl", "add_lint_tests") load( "//tools/skylark:drake_cc.bzl", "drake_cc_googletest", "drake_cc_library", "drake_cc_package_library", ) -load("//tools/lint:lint.bzl", "add_lint_tests") package(default_visibility = ["//visibility:public"])