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

Use the ruff formatter, add more ruff linter rules #99

Merged
merged 3 commits into from
Dec 22, 2023

Commits on Dec 17, 2023

  1. Use the ruff formatter, instead of black

    I have based this commit on:
    - ruff-pre-commit README.md | Using Ruff with pre-commit
      https://github.com/astral-sh/ruff-pre-commit/blob/main/README.md
    - The Ruff Formatter | Conflicting lint rules
      https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
    
    Support for the ruff formatter was added to pytest-ruff by commits from
    October 2023, released the same day as versions 0.2 and 0.2.1. Hence, it
    makes sense to require pytest-ruff ≥ 0.2.1 now that we use the ruff
    formatter.
    
    Support for `quote-style = "preserve"` was added to ruff in the last
    couple of weeks, therefore we require the latest version, ruff ≥ 0.1.8.
    This option is equivalent to `skip-string-normalization` in black.
    DimitriPapadopoulos committed Dec 17, 2023
    Configuration menu
    Copy the full SHA
    3e63285 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e8f4326 View commit details
    Browse the repository at this point in the history

Commits on Dec 22, 2023

  1. Prefer tabs to spaces

    jaraco committed Dec 22, 2023
    Configuration menu
    Copy the full SHA
    e9c578e View commit details
    Browse the repository at this point in the history