Skip to content

Apply ruff formatting to test files#242

Open
mielvds wants to merge 1 commit intomasterfrom
format-tests
Open

Apply ruff formatting to test files#242
mielvds wants to merge 1 commit 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

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

Comments