roll: pigweed python: Add ruff linting
- Add GN Python static analysis tool support for
ruff. E.g. python.lint.ruff. This is ommited from the default build
until rules are stablized.
- Create a .ruff.toml, add to all Python targets.
- Add a GN arg to control which Python static analysis tools are run
by default: pw_build_PYTHON_STATIC_ANALYSIS_TOOLS.
- Set pw_build_PYTHON_STATIC_ANALYSIS_TOOLS to just "mypy" and
"pylint".
Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/159050
Original-Revision: ebf33f56b6b693aa8e705829fea2c97b0b63c743
Rolled-Repo: https://pigweed.googlesource.com/pigweed/pigweed
Rolled-Commits: d44807b36fed50..ebf33f56b6b693
Roller-URL: https://ci.chromium.org/b/8734424006796628897
GitWatcher: ignore
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: I18d4ab9530e99ef324516c86107b14ae6e2fb838
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/showcase/sense/+/241555
Commit-Queue: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Bot-Commit: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
diff --git a/MODULE.bazel b/MODULE.bazel
index 7259162..6214462 100644
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -49,8 +49,8 @@
module_name = "pigweed",
# ROLL: Warning: this entry is automatically updated.
# ROLL: Last updated 2024-10-10.
- # ROLL: By https://cr-buildbucket.appspot.com/build/8734425366759697793.
- commit = "d44807b36fed502614d29343bdb8359a2b3774e6",
+ # ROLL: By https://cr-buildbucket.appspot.com/build/8734424006796628897.
+ commit = "ebf33f56b6b693aa8e705829fea2c97b0b63c743",
remote = "https://pigweed.googlesource.com/pigweed/pigweed",
)
@@ -58,8 +58,8 @@
module_name = "pw_toolchain",
# ROLL: Warning: this entry is automatically updated.
# ROLL: Last updated 2024-10-10.
- # ROLL: By https://cr-buildbucket.appspot.com/build/8734425366759697793.
- commit = "d44807b36fed502614d29343bdb8359a2b3774e6",
+ # ROLL: By https://cr-buildbucket.appspot.com/build/8734424006796628897.
+ commit = "ebf33f56b6b693aa8e705829fea2c97b0b63c743",
remote = "https://pigweed.googlesource.com/pigweed/pigweed",
strip_prefix = "pw_toolchain_bazel",
)