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

Disable or apply ruff/pyupgrade rules (UP) #12983

Closed
wants to merge 4 commits into from

Commits on Sep 28, 2024

  1. Disable ruff/pyupgrade rule UP027

    There's no evidence that generators are meaningfully faster
    than list comprehensions when combined with unpacking.
    DimitriPapadopoulos committed Sep 28, 2024
    Configuration menu
    Copy the full SHA
    42a7015 View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2024

  1. Apply ruff/pyupgrade preview rule UP031

    UP031 Use format specifiers instead of percent format
    DimitriPapadopoulos committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    74d29ff View commit details
    Browse the repository at this point in the history
  2. Disable ruff/pyupgrade rule UP038

    Using `X | Y` in `isinstance` is slower and more verbose.
    DimitriPapadopoulos committed Sep 29, 2024
    Configuration menu
    Copy the full SHA
    7695fff View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d11fcee View commit details
    Browse the repository at this point in the history