fix(#100): apply ruff format to clear backend/app/ format-debt (117 files) #152

Closed
Mark wants to merge 4 commits from fix/100-format-debt into main
Owner

Closes Mark/osint-hub#100 (format-debt subset).
kanban: t_30ff698d (parent verdict t_39eae918)

Context

PR #128 (open) addressed the lint side of #100 and pinned ruff to 0.16.7 in both .forgejo/workflows/ci.yml and pyproject.toml. Its issuecomment-54759 explicitly defers the ruff format --check step as a follow-up:

The unrelated ruff format --check app/ failures on 128 files predate this commit (verified on e1f41af too) and are out of scope for the manual-rule-violation card.

This PR is that follow-up.

What this PR does

Runs ruff format app/ --config ../pyproject.toml against main HEAD (bf6a0fb). 117 files reformatted, 67 already-formatted files unchanged. Diff is +1647 / -573 lines, all formatter-driven:

  • Long argument lists split onto separate lines (line-length 100)
  • Long ClassVar[...] annotations wrapped when they exceed line-length
  • No semantic changes; no functional behavior change

Verification

$ cd backend
$ ruff check .                                  # All checks passed! (exit 0)
$ ruff check app/ --config ../pyproject.toml    # All checks passed! (exit 0)
$ ruff format --check app/ --config ../pyproject.toml
                                                # 184 files already formatted (exit 0)

All three CI gate steps exit 0. Combined with PR #128 (ruff pin), the backend-lint job should go green.

Out of scope

  • mypy (separate lane; see PRs #127, #151)
  • Lint-rule violations (separate lane; PR #128)
  • Tests / golden fixtures / performance / e2e jobs (separate lanes)

Refs #100

Closes Mark/osint-hub#100 (format-debt subset). kanban: t_30ff698d (parent verdict t_39eae918) ## Context PR #128 (open) addressed the lint side of #100 and pinned ruff to 0.16.7 in both `.forgejo/workflows/ci.yml` and `pyproject.toml`. Its issuecomment-54759 explicitly defers the `ruff format --check` step as a follow-up: > The unrelated `ruff format --check app/` failures on 128 files predate this commit (verified on e1f41af too) and are out of scope for the manual-rule-violation card. This PR is that follow-up. ## What this PR does Runs `ruff format app/ --config ../pyproject.toml` against `main` HEAD (bf6a0fb). 117 files reformatted, 67 already-formatted files unchanged. Diff is +1647 / -573 lines, all formatter-driven: - Long argument lists split onto separate lines (line-length 100) - Long `ClassVar[...]` annotations wrapped when they exceed line-length - No semantic changes; no functional behavior change ## Verification ``` $ cd backend $ ruff check . # All checks passed! (exit 0) $ ruff check app/ --config ../pyproject.toml # All checks passed! (exit 0) $ ruff format --check app/ --config ../pyproject.toml # 184 files already formatted (exit 0) ``` All three CI gate steps exit 0. Combined with PR #128 (ruff pin), the `backend-lint` job should go green. ## Out of scope - mypy (separate lane; see PRs #127, #151) - Lint-rule violations (separate lane; PR #128) - Tests / golden fixtures / performance / e2e jobs (separate lanes) Refs #100
fix(#100): apply ruff format to clear backend/app/ format-debt (117 files)
Some checks failed
CI / Backend Lint & Format (pull_request) Failing after 4s
CI / Golden Fixture Validation (pull_request) Has been skipped
CI / Backend Tests (pull_request) Has been skipped
CI / Backend Security Tests (pull_request) Has been skipped
Stress Tests / Stress & Pipeline Tests (pull_request) Failing after 7s
Stress Tests / Full Data Pipeline Validation (pull_request) Has been skipped
Performance Regression Tests / Performance Regression Detection (pull_request) Failing after 32s
Performance Regression Tests / Compare with Baseline (pull_request) Has been skipped
CI / Frontend Lint (pull_request) Failing after 2m59s
CI / Frontend Tests (pull_request) Has been skipped
CI / Dependency Security Scan (pull_request) Has been skipped
CI / Frontend E2E Tests (pull_request) Has been skipped
CI / All Checks Passed (pull_request) Failing after 16s
7852d59236
Following the parent verdict (t_39eae918 -> t_30ff698d) and the explicit
deferral note in PR #128 (issuecomment-54759): the CI `ruff format --check`
step has been red on origin/main since ruff 0.16.x's formatter diverged
from the previous formatting baseline. Lint gates (`ruff check .` and
`ruff check app/ --config ../pyproject.toml`) were already green per the
PR #126/127/128 lineage; only the format step remained.

This commit runs `ruff format app/ --config ../pyproject.toml` against
main HEAD (bf6a0fb), which re-flows 117 files. The diff is purely
formatter-driven:
  - Long argument lists split onto separate lines (line-length 100)
  - ClassVar[...] annotations wrapped when they exceed line-length
  - No semantic changes; no functional behavior change

Verified locally after this commit:
  $ cd backend
  $ ruff check .                                  # All checks passed! (exit 0)
  $ ruff check app/ --config ../pyproject.toml    # All checks passed! (exit 0)
  $ ruff format --check app/ --config ../pyproject.toml
                                                  # 184 files already formatted (exit 0)

CI gate unblocks once this lands; combined with PR #128 (ruff pin to
0.16.7) the `backend-lint` job will go green.

Refs #100
kanban: t_30ff698d
noop: trigger Forgejo Actions retry (wedge re-run)
Some checks failed
Performance Regression Tests / Performance Regression Detection (pull_request) Failing after 6s
Stress Tests / Stress & Pipeline Tests (pull_request) Failing after 6s
Stress Tests / Full Data Pipeline Validation (pull_request) Has been skipped
Performance Regression Tests / Compare with Baseline (pull_request) Has been skipped
CI / Frontend Lint (pull_request) Failing after 52s
CI / Frontend Tests (pull_request) Has been skipped
CI / Backend Lint & Format (pull_request) Failing after 1m57s
CI / Golden Fixture Validation (pull_request) Has been skipped
CI / Backend Tests (pull_request) Has been skipped
CI / Backend Security Tests (pull_request) Has been skipped
CI / Dependency Security Scan (pull_request) Has been skipped
CI / Frontend E2E Tests (pull_request) Has been skipped
CI / All Checks Passed (pull_request) Failing after 1s
07ab159f29
noop: trigger second Forgejo Actions retry (wedge self-heal probe)
Some checks failed
CI / Backend Lint & Format (pull_request) Failing after 5s
CI / Golden Fixture Validation (pull_request) Has been skipped
CI / Backend Tests (pull_request) Has been skipped
CI / Backend Security Tests (pull_request) Has been skipped
Stress Tests / Stress & Pipeline Tests (pull_request) Failing after 7s
Stress Tests / Full Data Pipeline Validation (pull_request) Has been skipped
CI / Frontend Lint (pull_request) Failing after 55s
CI / Frontend Tests (pull_request) Has been skipped
CI / Dependency Security Scan (pull_request) Has been skipped
CI / Frontend E2E Tests (pull_request) Has been skipped
CI / All Checks Passed (pull_request) Failing after 1s
Performance Regression Tests / Performance Regression Detection (pull_request) Failing after 2m14s
Performance Regression Tests / Compare with Baseline (pull_request) Has been skipped
a30c2a68b1
noop: trigger CI after runner restart
Some checks failed
CI / Backend Lint & Format (pull_request) Failing after 5s
CI / Golden Fixture Validation (pull_request) Has been skipped
CI / Backend Tests (pull_request) Has been skipped
CI / Backend Security Tests (pull_request) Has been skipped
Stress Tests / Stress & Pipeline Tests (pull_request) Failing after 6s
Stress Tests / Full Data Pipeline Validation (pull_request) Has been skipped
CI / Frontend Lint (pull_request) Failing after 51s
CI / Frontend Tests (pull_request) Has been skipped
CI / Dependency Security Scan (pull_request) Has been skipped
CI / Frontend E2E Tests (pull_request) Has been skipped
CI / All Checks Passed (pull_request) Failing after 1s
Performance Regression Tests / Performance Regression Detection (pull_request) Failing after 2m12s
Performance Regression Tests / Compare with Baseline (pull_request) Has been skipped
51e5041402
Mark closed this pull request 2026-09-21 01:08:57 +00:00
Some checks failed
CI / Backend Lint & Format (pull_request) Failing after 5s
CI / Golden Fixture Validation (pull_request) Has been skipped
CI / Backend Tests (pull_request) Has been skipped
CI / Backend Security Tests (pull_request) Has been skipped
Stress Tests / Stress & Pipeline Tests (pull_request) Failing after 6s
Stress Tests / Full Data Pipeline Validation (pull_request) Has been skipped
CI / Frontend Lint (pull_request) Failing after 51s
CI / Frontend Tests (pull_request) Has been skipped
CI / Dependency Security Scan (pull_request) Has been skipped
CI / Frontend E2E Tests (pull_request) Has been skipped
CI / All Checks Passed (pull_request) Failing after 1s
Performance Regression Tests / Performance Regression Detection (pull_request) Failing after 2m12s
Performance Regression Tests / Compare with Baseline (pull_request) Has been skipped

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/osint-hub!152
No description provided.