Skip to content

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

Merged
LacerdaTraderCode merged 1 commit into
mainfrom
fix/1-lint-e501-test-backtest
Oct 16, 2026
Merged

LacerdaTraderCode merged 1 commit into
mainfrom
fix/1-lint-e501-test-backtest

Conversation

@LacerdaTraderCode

Copy link
Copy Markdown
Owner

Closes #1

What changed

  • tests/test_backtest.py: the single-line run_backtest(...) call in test_the_strategy_name_is_carried_into_the_result is wrapped one argument per line, like the other calls in the file.

Root cause

Ruff E501: the line had 101 characters and the limit is 100. The Lint step failed and the test step was skipped in CI.

How it was validated

No code behavior changes (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 c19df7e into main Oct 16, 2026
1 check passed
@LacerdaTraderCode
LacerdaTraderCode deleted the fix/1-lint-e501-test-backtest branch October 16, 2026 11:50
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 E501 line too long in tests/test_backtest.py

1 participant