Skip to content

style: wrap long trainer log lines and lift callback test import#49

Merged
ogulcanaydogan merged 1 commit into
mainfrom
style/v0.1.0-trainer-ruff-cleanup
May 29, 2026
Merged

style: wrap long trainer log lines and lift callback test import#49
ogulcanaydogan merged 1 commit into
mainfrom
style/v0.1.0-trainer-ruff-cleanup

Conversation

@ogulcanaydogan
Copy link
Copy Markdown
Owner

  • Fixes 3 ruff E501 violations in src/forge/training/trainer.py (logger.info at line 118, __init__ signature at line 232, logger.warning reason= string at line 335) by wrapping to the project's 100-char limit
  • Fixes 1 ruff E402 in tests/test_callbacks.py by moving from forge.training.trainer import detect_loss_spike to the top-level import block
  • All 4 errors have blocked every PR's test job since loss-spike detection landed in fix: prevent NaN gradient crash on pre-Ampere GPUs #24, including pending Dependabot idna bump (chore(deps): bump idna from 3.11 to 3.15 #48); no behavioural change

Three E501 violations in trainer.py (logger.info at line 118, __init__
signature at line 232, logger.warning reason= string at line 335) wrap
to fit the project's 100-char line limit. One E402 in test_callbacks.py
moves the detect_loss_spike import to the top-level block where it belongs.

These four ruff errors have been gating every PR's test job since the
loss-spike detection landed in #24, including the pending Dependabot
idna bump (#48).
@ogulcanaydogan ogulcanaydogan merged commit 76817cb into main May 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant