Skip to content

Commit b6fa2de

Browse files
committed
fix: complete stage 1 strangler guardrails
1 parent 0bd846f commit b6fa2de

20 files changed

Lines changed: 2856 additions & 2681 deletions

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
run: |
5555
# Ruff has no max-module-lines rule. This check prevents new files from
5656
# exceeding the current worst case. Tighten the threshold over time.
57-
MAX_LINES=2450 # current max: 2404 (github_downloader.py)
57+
MAX_LINES=1400 # Stage 1 strangler target (#1077)
5858
VIOLATIONS=$(find src/ -name '*.py' -print0 | xargs -0 -I{} awk -v max="$MAX_LINES" \
5959
'END { if (NR > max) printf "%s: %d lines (max %d)\n", FILENAME, NR, max }' {})
6060
if [ -n "$VIOLATIONS" ]; then

src/apm_cli/commands/compile/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def _family_of(name: str) -> str | None:
322322
help="Compile for all canonical targets. Equivalent to --target all.",
323323
)
324324
@click.pass_context
325-
def compile(
325+
def compile( # noqa: C901, PLR0912, PLR0915
326326
ctx,
327327
output,
328328
target,

0 commit comments

Comments
 (0)