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

Conversation

cutwater
Copy link
Contributor

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

@github-actions github-actions bot added backport-4.9 This PR should be backported to stable-4.9 (2.4) backport-4.10 labels Oct 17, 2024
@cutwater cutwater removed backport-4.9 This PR should be backported to stable-4.9 (2.4) backport-4.10 labels Oct 17, 2024
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
Copy link

sonarcloud bot commented Oct 18, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
31.2% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@cutwater cutwater enabled auto-merge (squash) October 18, 2024 13:27
@cutwater cutwater merged commit 331c019 into ansible:master Oct 18, 2024
18 of 21 checks passed
@cutwater cutwater deleted the feature/ruff/pyupgrade branch October 18, 2024 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants