aboutsummaryrefslogtreecommitdiff
path: root/rust_tools/rust_watch.py
diff options
context:
space:
mode:
authorGeorge Burgess IV <gbiv@google.com>2023-12-04 10:58:37 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-12-04 21:49:41 +0000
commit763a108b044a3880279573e1b9b97260ced20e81 (patch)
treebeadd3dd7846ecb07f6ce7e8082259f202cf021b /rust_tools/rust_watch.py
parent09d24dbddc5abd2a6a602d817e2cf7e8dbde1c61 (diff)
downloadtoolchain-utils-763a108b044a3880279573e1b9b97260ced20e81.tar.gz
rust_tools: fix lint errors in rust_watch.py
BUG=b:314767343 TEST=repo upload Change-Id: I0f3911fd5919eaf074b9bbf01c2140d2ef88aaae Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/5084476 Reviewed-by: Bob Haarman <inglorion@chromium.org> Commit-Queue: George Burgess <gbiv@chromium.org> Tested-by: George Burgess <gbiv@chromium.org>
Diffstat (limited to 'rust_tools/rust_watch.py')
-rwxr-xr-xrust_tools/rust_watch.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/rust_tools/rust_watch.py b/rust_tools/rust_watch.py
index 743396f1..c912e493 100755
--- a/rust_tools/rust_watch.py
+++ b/rust_tools/rust_watch.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
# Copyright 2020 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -94,7 +93,7 @@ class State(NamedTuple):
def parse_release_tags(lines: Iterable[str]) -> Iterable[RustReleaseVersion]:
- """Parses `git ls-remote --tags` output into Rust stable release versions."""
+ """Parses `git ls-remote --tags` output into Rust stable versions."""
refs_tags = "refs/tags/"
for line in lines:
_sha, tag = line.split(None, 1)
@@ -360,8 +359,8 @@ def main(argv: List[str]) -> None:
last_gentoo_sha=most_recent_gentoo_commit,
),
)
- # Running through this _should_ be a nop, but do it anyway. Should make any
- # bugs more obvious on the first run of the script.
+ # Running through this _should_ be a nop, but do it anyway. Should make
+ # any bugs more obvious on the first run of the script.
prior_state = read_state(state_file)
logging.info("Last state was %r", prior_state)