diff --git a/tools/BUILD.bazel b/tools/BUILD.bazel
index 84d24cf2..8ef6a865 100644
--- a/tools/BUILD.bazel
+++ b/tools/BUILD.bazel
@@ -12,8 +12,8 @@ py_library(
 py_binary(
     name = "compare",
     srcs = ["compare.py"],
-    python_version = "PY3",
     imports = ["."],
+    python_version = "PY3",
     deps = [
         ":gbench",
     ],