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 Oct 9, 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 Oct 9, 2024
    Configuration menu
    Copy the full SHA
    d4eede3 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 Oct 9, 2024
    Configuration menu
    Copy the full SHA
    be0f313 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 Oct 9, 2024
    Configuration menu
    Copy the full SHA
    4764152 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 Oct 9, 2024
    Configuration menu
    Copy the full SHA
    21f3324 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 Oct 9, 2024
    Configuration menu
    Copy the full SHA
    c842d84 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 Oct 9, 2024
    Configuration menu
    Copy the full SHA
    50a7fb2 View commit details
    Browse the repository at this point in the history