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

STY: Apply ruff rules (RUF) #1372

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Commits on Nov 24, 2024

  1. STY: Apply ruff rule RUF012

    RUF012 Mutable class attributes should be annotated with `typing.ClassVar`
    
    Co-authored-by: Chris Markiewicz <[email protected]>
    DimitriPapadopoulos and effigies committed Nov 24, 2024
    Configuration menu
    Copy the full SHA
    23180a9 View commit details
    Browse the repository at this point in the history
  2. STY: Apply ruff rule RUF017

    RUF017 Avoid quadratic list summation
    DimitriPapadopoulos committed Nov 24, 2024
    Configuration menu
    Copy the full SHA
    c30c7fe View commit details
    Browse the repository at this point in the history
  3. STY: Apply ruff preview rule RUF021

    RUF021 Parenthesize `a and b` expressions when chaining `and` and `or` together,
           to make the precedence clear
    
    Co-authored-by: Chris Markiewicz <[email protected]>
    DimitriPapadopoulos and effigies committed Nov 24, 2024
    Configuration menu
    Copy the full SHA
    7cbd8ed View commit details
    Browse the repository at this point in the history
  4. STY: Apply ruff preview rule RUF023

    RUF023 `__slots__` is not sorted
    DimitriPapadopoulos committed Nov 24, 2024
    Configuration menu
    Copy the full SHA
    181b191 View commit details
    Browse the repository at this point in the history
  5. STY: Apply ruff preview rule RUF031

    RUF031 Avoid parentheses for tuples in subscripts.
    DimitriPapadopoulos committed Nov 24, 2024
    Configuration menu
    Copy the full SHA
    92a0679 View commit details
    Browse the repository at this point in the history
  6. STY: Further simplification

    Co-authored-by: Chris Markiewicz <[email protected]>
    DimitriPapadopoulos and effigies committed Nov 24, 2024
    Configuration menu
    Copy the full SHA
    406e27a View commit details
    Browse the repository at this point in the history