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

Add pyupgrade plugin for ruff #2320

Merged
merged 1 commit into from
Oct 18, 2024

Commits on Oct 18, 2024

  1. Add pyupgrade plugin for ruff

    Warnings fixed:
    
    * UP005 [*] `assertEquals` is deprecated, use `assertEqual`
    * UP008 Use `super()` instead of `super(__class__, self)`
    * UP011 [*] Unnecessary parentheses to `functools.lru_cache`
    * UP015 [*] Unnecessary open mode parameters
    * UP022 Prefer `capture_output` over sending `stdout` and `stderr` to `PIPE`
    * UP028 Replace `yield` over `for` loop with `yield from`
    * UP030 Use implicit references for positional format fields
    * UP031 Use format specifiers instead of percent format
    * UP039 [*] Unnecessary parentheses after class definition
    
    Statistics:
    
    21      UP022   [*] replace-stdout-stderr
    12      UP015   [*] redundant-open-modes
    10      UP031   [*] printf-string-formatting
     3      UP008   [*] super-call-with-parameters
     2      UP011   [*] lru-cache-without-parameters
     2      UP028   [*] yield-in-for-loop
     2      UP039   [*] unnecessary-class-parentheses
     1      UP005   [*] deprecated-unittest-alias
     1      UP023   [*] deprecated-c-element-tree
     1      UP030   [*] format-literals
    cutwater committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    df1b4f6 View commit details
    Browse the repository at this point in the history