Skip to content

fix(lint): ignore PLR0917 in tests alongside PLR0913 - #1154

Merged
lengau merged 1 commit into
mainfrom
work/fix-ruff
Aug 11, 2026
Merged

fix(lint): ignore PLR0917 in tests alongside PLR0913#1154
lengau merged 1 commit into
mainfrom
work/fix-ruff

Conversation

@lengau

@lengau lengau commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

`make lint-ruff` was failing with 9 `PLR0917` (too many positional arguments) errors across several test files that use many fixtures and `@pytest.mark.parametrize` decorators.

This extends the existing test per-file-ignore for `PLR0913` to also cover `PLR0917`, for the same reasoning: test functions often need many positional arguments for fixtures/parametrization.

Testing

`make lint-ruff` now passes cleanly.

make lint-ruff was failing with PLR0917 (too many positional
arguments) errors across several test files that use many fixtures
and parametrize decorators. Extend the existing test per-file-ignore
for PLR0913 to also cover PLR0917, for the same reasoning.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings August 10, 2026 21:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Ruff lint configuration so test files ignore PLR0917 (“too many positional arguments”), aligning with the existing rationale for ignoring PLR0913 in tests where fixtures/parametrization commonly require many arguments.

Changes:

  • Extend Ruff per-file-ignores for tests/**.py to include PLR0917 alongside PLR0913.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@lengau
lengau requested review from a team and mr-cal August 10, 2026 21:37
@lengau
lengau marked this pull request as ready for review August 10, 2026 21:37
@mr-cal
mr-cal requested a review from a team August 11, 2026 11:34
@lengau
lengau merged commit b399df2 into main Aug 11, 2026
24 checks passed
@lengau
lengau deleted the work/fix-ruff branch August 11, 2026 14:59
lengau added a commit that referenced this pull request Aug 11, 2026
make lint-ruff was failing with PLR0917 (too many positional
arguments) errors across several test files that use many fixtures
and parametrize decorators. Extend the existing test per-file-ignore
for PLR0913 to also cover PLR0917, for the same reasoning.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

4 participants