Ruff: reformat tools (part 3/3: perf .. win).

Preserve yapf style to the best capacity.

LSC doc:
https://docs.google.com/document/d/1P6AE9aeKuFkxPAYInYxLFIpDgpiCAT-S_BQkNU0lb3s/edit?tab=t.0

Onboarded using the following command: `~/cr/depot_tools/ruff_chromium format .`

NO_IFTTT=reformatting only.
BYPASS_RECITATION_REASON=reformatting only.
Bug: 40874143

Change-Id: I971d8d3ad1a0dee3998a9eaa25c0617c6a6a6964
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8254624
Commit-Queue: Junji Watanabe <jwata@google.com>
Owners-Override: Alex Ovsienko <ovsienko@google.com>
SLSA-Policy-Verified: SLSA Policy Verification Service <devtools-gerritcodereview-exitgate@google.com>
Commit-Queue: Alex Ovsienko <ovsienko@google.com>
Auto-Submit: Alex Ovsienko <ovsienko@google.com>
Reviewed-by: Junji Watanabe <jwata@google.com>
Cr-Commit-Position: refs/heads/main@{#1680337}
NOKEYCHECK=True
GitOrigin-RevId: 54e9909c3189a77bc8d353662628e4c5d6686290
14 files changed
tree: 28ee8f7ea3882b11892f28fcac141b8d4485532e
  1. google/
  2. .ruff.toml
  3. llvm_objdump.py
  4. llvm_symbolizer.py
  5. OWNERS
  6. README.md
README.md

//tools/python

This directory is meant to contain Python code that is:

  1. Not platform-specific (e.g. //tools/android/python_utils).
  2. Useful to multiple other tools.

All Python code that is used by GN actions or templates within //build must live under //build, since that directory cannot have deps outside of it. However, code here can be used by GN actions or templates that live outside of //build.

When adding code to this directory, or when adding a dep onto code that lives in this directory, please consider whether or not duplicating the code would actually a better choice. Code re-use is helpful, but dependencies also come with a cost, especially when it comes to being able to test changes to shared code.