Skip to content

Apply ruff formatting to test files#242

Merged
mielvds merged 3 commits intomasterfrom
format-tests
Feb 25, 2026
Merged

Apply ruff formatting to test files#242
mielvds merged 3 commits intomasterfrom
format-tests

Conversation

@mielvds
Copy link
Collaborator

@mielvds mielvds commented Feb 16, 2026

This PR makes the test files comply with the ruff linter and formatter.

  • formatting was applied to all test files
  • some parts of the code were updated to more modern python, like format strings, exception suppress, exception chaining
  • the Python 2 BW-compatible code for reading files was removed from tests/runtests.py. This is not breaking because everything below 3.10 is no longer supported anyway.
  • renamed the equalUnordered to the more pythonic equal_unordered. Linter errors on camelCase naming in unittest class extensions are ignored because that would break the extension.

@github-actions
Copy link

github-actions bot commented Feb 16, 2026

@mielvds mielvds merged commit 9acbe67 into master Feb 25, 2026
16 checks passed
@mielvds mielvds deleted the format-tests branch February 25, 2026 08:52
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.

2 participants