Fix docs drift, shared regex literals, CI wording and redefined loop variables, with the gates that would have caught them

オープン
#608 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
testing, tooling

調査の方向性

Start with docs/architecture.md and the listed definitions in c_family/layout.py, c_family/sanitizers.py, cmake/syntax.py, autotools/configure_syntax.py, facts/shell_values.py, and facts/expansion.py; inspect the existing tests and Ruff configuration. Implement the documented checks and fixes across the named files, then run the test suite. Done means all fixes land and each requested gate runs in tests.

索引モデルが issue の本文から書いたものです。

説明

Fixes

  • docs/architecture.md:45 names pretty.py, which no longer exists.
  • Duplicated regex literals: the CMake truthy set (c_family/layout.py:23, c_family/sanitizers.py:23), the identifier regex (cmake/syntax.py:74, autotools/configure_syntax.py:20), and $VAR/${VAR} (facts/shell_values.py:369, facts/expansion.py:359).
  • Wording: "found in CI configuration" (9 times) becomes "found in what CI runs" (1 time today), with the snapshots.
  • PLW2901: 7 redefined loop variables.

Gates

  • A docs drift test: every *.py, *.toml or project_validator/... path named in docs/*.md and the README must exist, with a short allowlist for user-facing examples.
  • ruff PLW2901, PLR1714 (2 hits today) and PLW0603 (0).
  • SLF001 for tests/ as a count that may only fall, starting at 43.
  • A duplicate-definition AST check: a name bound twice in one module or class body fails (skipping @overload, property setters and if TYPE_CHECKING).

Done when

All fixes land and every gate runs in the test suite.

Split from #543. Checked against main at 4b4dbb6c on 2026-12-03: the cases above were reproduced with small fixtures or found in the code.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ByTXNqDWdM7HzezrFtEvQt

主要言語
Python
スター
4
フォーク
1
平均マージ
6時間 31分
マージ済み PR(30日)
238

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

cpp-best-practices/project_validator のほかの issue

cpp-best-practices/project_validator の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。