Skip to content

fix(tests): wrap long lines to satisfy ruff E501 - #2

Merged
LacerdaTraderCode merged 6 commits into
mainfrom
fix/1-lint-e501-tests
Oct 17, 2026
Merged

LacerdaTraderCode merged 6 commits into
mainfrom
fix/1-lint-e501-tests

Conversation

@LacerdaTraderCode

Copy link
Copy Markdown
Owner

Closes #1

What changed

Seven lines wrapped, one argument per line, in three test files:

  • tests/test_api.py: the ClaudeAnswerGenerator(...) call (line 20) and the client.post("/documents", ...) call (line 43).
  • tests/test_generation.py: the two SearchResult(...) entries (lines 14-15), the single-entry results list (line 29) and the httpx2.Response(...) return (line 34).
  • tests/test_pipeline.py: the httpx2.Response(...) return (line 34).

Same arguments, same test data, no behavior change.

Root cause

Ruff E501: seven lines between 101 and 118 characters, limit 100. The Lint step failed and the test step was skipped in CI.

How it was validated

Formatting only. Validation is the CI run on this PR: Lint (ruff check . && ruff format --check .) and pytest -v must both run and pass. The ruff rules were not changed.

@LacerdaTraderCode
LacerdaTraderCode merged commit a37a6b5 into main Oct 17, 2026
1 check passed
@LacerdaTraderCode
LacerdaTraderCode deleted the fix/1-lint-e501-tests branch October 17, 2026 01:44
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.

Fix 7 E501 line-too-long errors in tests

1 participant