Skip to content

refactor(ci): record keep-port decision - #3816

Merged
dan-petty merged 2 commits into
mainfrom
refactor/2600-keep-complexity-port
Nov 6, 2026
Merged

dan-petty merged 2 commits into
mainfrom
refactor/2600-keep-complexity-port

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The module docstring of core/code_metrics.py now says why the module does not call Ruff. Ruff is a development dependency only. Its output holds the figure only inside a message string, and only for a function above max-complexity. The McCabe port is one standard-library module. A test holds 12 figures that were taken from Ruff.

The decision keeps the port and its tests. The code does not change.

Closes #2600

Change: openspec/changes/archive/2026-11-06-2600-devops-scan-complexity-and-the-inspection/

The module docstring of core/code_metrics.py now says why the module does
not call Ruff: Ruff is a development dependency, and its output holds the
figure only in a message string, only for a function above max-complexity.
The decision keeps the port and its 12 test figures.
@dan-petty dan-petty added type/refactor Type refactor: a new structure, same behavior scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners labels Nov 6, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Evidence for this pull request.

  • Feasibility checks ran on origin/main with Ruff 0.16.8. The proposal in the archived change lists them: Ruff is a development dependency only, its JSON output has no complexity field, and it reports only functions above max-complexity.
  • The change adds only a docstring paragraph. No behavior changes, so there is no fail-to-pass run.
  • After the rebase onto origin/main (f1130d3): tests/core/test_code_metrics.py gives 12 passed, ruff check and ruff format --check pass for core/code_metrics.py, and the pre-push fast static checks pass.

@dan-petty
dan-petty marked this pull request as ready for review November 6, 2026 18:17
@dan-petty
dan-petty merged commit 7ca3afd into main Nov 6, 2026
24 checks passed
@dan-petty
dan-petty deleted the refactor/2600-keep-complexity-port branch November 6, 2026 18:18
dan-petty pushed a commit that referenced this pull request Nov 6, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.71.0](v0.70.2...v0.71.0)
(2026-11-06)


### Features

* **roadmap:** a Service row runs the retitle job
([#3811](#3811))
([f1130d3](f1130d3))
* **roadmap:** list moved plan paths in the stage comment
([#3805](#3805))
([b550b07](b550b07))


### Bug Fixes

* **review:** Limit lockfile bucket to CONST_LOCKFILE_NAMES
([#3808](#3808))
([0b2909a](0b2909a))
* **security:** make clean-default model fields required
([#3807](#3807))
([dcc22b0](dcc22b0))


### Code Refactoring

* **ci:** record keep-port decision
([#3816](#3816))
([7ca3afd](7ca3afd))
* **mcp:** delete the outbound MCP code that nothing reaches
([#3817](#3817))
([b28fd4d](b28fd4d))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/ci GitHub Actions workflows, pre-commit hooks, CI gates, and runners type/refactor Type refactor: a new structure, same behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(ci): record keep-port decision

1 participant