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 preview rules #1369

Merged
merged 9 commits into from
Oct 2, 2024
Merged

Commits on Oct 1, 2024

  1. STY: Apply ruff/pyupgrade preview rule UP031

    UP031 Use format specifiers instead of percent format
    
    Co-authored-by: Chris Markiewicz <[email protected]>
    DimitriPapadopoulos and effigies committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    9f28bc8 View commit details
    Browse the repository at this point in the history
  2. MNT: Python 3 string formatting: %i → %d

    Co-authored-by: Chris Markiewicz <[email protected]>
    DimitriPapadopoulos and effigies committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    95cc728 View commit details
    Browse the repository at this point in the history
  3. STY: Apply ruff/refurb preview rule FURB145

    FURB145 Prefer `copy` method over slicing
    DimitriPapadopoulos committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    5daffcc View commit details
    Browse the repository at this point in the history
  4. STY: Apply ruff/refurb preview rule FURB148

    FURB148 `enumerate` index is unused, use `for x in y` instead
    DimitriPapadopoulos committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    4810cd7 View commit details
    Browse the repository at this point in the history
  5. STY: Apply ruff/refurb preview rule FURB157

    FURB157 Verbose expression in `Decimal` constructor
    DimitriPapadopoulos committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    02b7b0e View commit details
    Browse the repository at this point in the history
  6. STY: Apply ruff/refurb preview rule FURB192

    FURB192 Prefer `min` over `sorted()` to compute the minimum value in a sequence
    DimitriPapadopoulos committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    8c2a501 View commit details
    Browse the repository at this point in the history
  7. STY: Apply ruff/flake8-comprehensions preview rule C409

    C409 Unnecessary list comprehension passed to `tuple()` (rewrite as a generator)
    DimitriPapadopoulos committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    73bae7e View commit details
    Browse the repository at this point in the history
  8. STY: Apply ruff/flake8-comprehensions preview rule C419

    C419 Unnecessary list comprehension
    DimitriPapadopoulos committed Oct 1, 2024
    Configuration menu
    Copy the full SHA
    b33bcde View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2024

  1. Configuration menu
    Copy the full SHA
    ec15839 View commit details
    Browse the repository at this point in the history