Skip to content

chore(deps-dev): update ruff requirement from <0.13,>=0.12 to >=0.12,<0.17 - #1

Closed
dependabot[bot] wants to merge 10 commits into
mainfrom
dependabot/pip/ruff-gte-0.12-and-lt-0.17
Closed

chore(deps-dev): update ruff requirement from <0.13,>=0.12 to >=0.12,<0.17#1
dependabot[bot] wants to merge 10 commits into
mainfrom
dependabot/pip/ruff-gte-0.12-and-lt-0.17

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 12, 2026

Copy link
Copy Markdown

Updates the requirements on ruff to permit the latest version.

Release notes

Sourced from ruff's releases.

0.16.2

Release Notes

Released on 2026-08-06.

Bug fixes

  • [flake8-pyi] Avoid false positives on singledispatch functions (PYI041) (#27335)

Server

  • Register formatting capabilities dynamically to exclude TOML files (#27332)

Contributors

Install ruff 0.16.2

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/ruff/releases/download/0.16.2/ruff-installer.sh | sh

Install prebuilt binaries via powershell script

powershell -ExecutionPolicy Bypass -c "irm https://releases.astral.sh/github/ruff/releases/download/0.16.2/ruff-installer.ps1 | iex"

Download ruff 0.16.2

File Platform Checksum
ruff-aarch64-apple-darwin.tar.gz Apple Silicon macOS checksum
ruff-x86_64-apple-darwin.tar.gz Intel macOS checksum
ruff-aarch64-pc-windows-msvc.zip ARM64 Windows checksum
ruff-i686-pc-windows-msvc.zip x86 Windows checksum
ruff-x86_64-pc-windows-msvc.zip x64 Windows checksum
ruff-aarch64-unknown-linux-gnu.tar.gz ARM64 Linux checksum
ruff-i686-unknown-linux-gnu.tar.gz x86 Linux checksum
ruff-powerpc64-unknown-linux-gnu.tar.gz PPC64 Linux checksum
ruff-powerpc64le-unknown-linux-gnu.tar.gz PPC64LE Linux checksum
ruff-riscv64gc-unknown-linux-gnu.tar.gz RISCV Linux checksum
ruff-s390x-unknown-linux-gnu.tar.gz S390x Linux checksum

... (truncated)

Changelog

Sourced from ruff's changelog.

0.16.2

Released on 2026-08-06.

Bug fixes

  • [flake8-pyi] Avoid false positives on singledispatch functions (PYI041) (#27335)

Server

  • Register formatting capabilities dynamically to exclude TOML files (#27332)

Contributors

0.16.1

Released on 2026-07-30.

Preview features

  • Add an option to opt out of human-readable names (#27160)
  • [flake8-pytest-style] Make fixes safe by default and unsafe only when comments are present (PT018) (#27201)
  • [pyupgrade] Skip fix when a defaulted TypeVar precedes a non-defaulted one (UP040, UP046, UP047) (#27133)
  • [ruff] Fix false positive with unpacked arguments (RUF065) (#26959)

Bug fixes

  • Bump gen-lsp-types to gracefully handle unknown enumeration values in LSP messages (#27230)
  • [flake8-bugbear] Mark range as immutable (B008) (#27247)
  • [flake8-comprehensions] NFKC-normalize keyword names in C408 fix (#26813)
  • [flake8-return] Fix false positive when variable is read in finally clause (RET504) (#25441)
  • [pydocstyle] Skip section detection inside RST directive bodies (D214, D405, D413) (#23635)
  • [refurb] Parenthesize yield arguments in the FURB192 fix (#27192)

Rule changes

  • [flake8-pytest-style] Mark PT022 fixes as unsafe (#26440)
  • [refurb] Mark fixes that remove unknown separators as unsafe (FURB105) (#27200)

Server

  • Fix indexing of excluded nested Ruff workspaces (#27303)
  • Lint TOML files in the LSP (#26862)

... (truncated)

Commits
  • 5b48a04 Bump 0.16.2 (#27555)
  • 1b9e5fc Update Swatinem/rust-cache action to v2.9.2 (#27568)
  • c4e86fc [ty] Add helper extension methods for half-range and equality constraints (#2...
  • 17a00de [ty] Reuse primer commands in memory reports (#27553)
  • 6ea296b [ty] Normalize type labels in structured docstrings (#26923)
  • 2fc445f [ty] Diagnose invalid getattr calls (#27502)
  • 22c7823 [ty] Enable (but downrank) auto-import completion suggestions from stub-only ...
  • 05160d5 [ty] Diagnose invalid descriptor __get__ calls (#27400)
  • baea3d0 [ty] Expose strict analysis options in the playground (#27543)
  • c88946e [ty] Bump ecosystem-analyzer for strict project settings (#27542)
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

neosun100 and others added 10 commits August 7, 2026 07:49
- pyproject: license MIT → MIT-0(与 LICENSE 文件一致,消除声明矛盾);
  authors Neo → Amazon.com, Inc. or its affiliates;
  package name → sample-quick-control
- docs/*.svg: 图标题 amazon-quick-control → sample-quick-control
- 保留 ~/.claude/skills/amazon-quick-control(Claude skill 标识符,非仓名)

门禁结果:scan_repo rc=0 / audit 0 gap / pytest 79 passed 5 skipped / ruff 全过
Probe 报 Critical=111,分诊结果:**全部来自 semgrep 的同一条规则 arbitrary-sleep**,
gitleaks / grype / syft / bandit / cfn_nag / checkov 全部为 0 ——
即无硬编码密钥、无漏洞依赖、无 IaC 高危配置,不存在真实安全问题。

arbitrary-sleep 是代码卫生类规则(建议用事件/条件等待替代裸 sleep)。但对本项目而言
这些 sleep 是**功能必需**:浏览器与桌面应用自动化必须等应用重启、等页面渲染、
等 CDP 响应到达 —— 逐处核对确认,无一处是忙等或可直接删除的。

处理方式遵循 probe-triage 的正解:
  · 逐行加 `# nosemgrep: arbitrary-sleep -- <具体理由>`(锚点行必须是 finding 报告的那行)
  · **不**全局禁用规则、**不**改扫描配置、**不**删除有功能的代码

覆盖 9 个文件共 112 处(Probe 报 111,差 1 处在 tests/test_e2e.py,一并抑制)。
验证:全部 .py 语法通过、ruff All checks passed、pytest exit 0(5 个 e2e 因需真实
浏览器而预期 skip)。
PCSR 工单前置清单要求逐条检查 Warning 并写明结论。本次 Probe 扫描
Critical=0,Warning=14(全部来自 bandit),逐条核对结果:

## B108 x10 —— 真实(低危),已修

硬编码 `/tmp/quick.png` / `/tmp/quick_screen.json` / `/tmp/quickweb.png` 等
默认输出路径。/tmp 全局可写且路径可预测,多用户机器上他人可预先创建同名文件或
符号链接抢占(symlink attack)—— 会把截图/页面结构写到攻击者可读的位置,或覆盖
其它文件。

本项目是**公开 sample**,客户会照抄这个模式,所以选择**真修而非抑制**:
新增 `_out_dir()` / `_out(name)`,默认落到 `~/.cache/quick-control`(创建时
mode=0o700,实测生效),可用环境变量 QUICK_OUT_DIR 覆盖。
命令行接口未变 —— 仍可显式传路径。共替换 10 处,涉及 6 个脚本。

## B310 x4 —— 误报,不修

`urllib.request.urlopen` 的 4 处调用全部指向**硬编码的 127.0.0.1 本地 CDP 端点**
(`http://127.0.0.1:{PORT}/json/...`),协议固定 http、无任何用户输入参与 URL 拼接。
该规则担心的是 `file:/` 或自定义 schema 被意外允许,此处不存在这种可能。
保留原样,并已在工单中逐条说明理由。

验证:全部 .py 语法通过;ruff All checks passed(顺带修掉注入 import os 时
在 `import sys, os, json` 这类单行多模块导入上产生的 5 处 F811 重复导入);
pytest exit 0(5 个 e2e 因需真实浏览器而预期 skip);
helper 实测返回 ~/.cache/quick-control 且目录权限 0o700。
Updates the requirements on [ruff](https://github.com/astral-sh/ruff) to permit the latest version.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@0.12.0...0.16.2)

---
updated-dependencies:
- dependency-name: ruff
  dependency-version: 0.16.2
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Aug 12, 2026
@neosun100 neosun100 closed this Aug 13, 2026
@neosun100
neosun100 force-pushed the dependabot/pip/ruff-gte-0.12-and-lt-0.17 branch from 2c84bc7 to f611a5b Compare August 13, 2026 06:09
@dependabot @github

dependabot Bot commented on behalf of github Aug 13, 2026

Copy link
Copy Markdown
Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/pip/ruff-gte-0.12-and-lt-0.17 branch August 13, 2026 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant