Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to the Ruff linter and update all external packages and tools to the latest versions #75

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jonssonchristian
Copy link
Collaborator

This pull request (PR) resolves #64.

The previously used tools isort, black and flake8 (including plugins) are replaced by ruff, which provides all the previous functionality and more in a single convenient interface. It also runs much faster.

There are small formatting changes to many files since ruff behaves slightly different from black.

The following other changes have also been made:

  • Update all external packages and tools to the latest versions;
  • Include Python 3.13 when running the linting check and tests in the GitHub Actions pipeline; and
  • Make minor refinements to documentation.

@jonssonchristian jonssonchristian added the enhancement New feature or request label Feb 7, 2025
@jonssonchristian jonssonchristian self-assigned this Feb 7, 2025
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12"]
python-version: ["3.11", "3.12", "3.13"]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This adds Python version 3.13 when running the GitHub Actions pipeline, so we can check everything works across versions 3.11 to 3.13.

[tool.black]
color = true
target-version = ["py312"]
[tool.ruff]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The settings for the ruff tool are all contained within this file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider moving to the Ruff linter
1 participant