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: Enforce ruff rules #3690

Draft
wants to merge 16 commits into
base: master
Choose a base branch
from

Commits on Oct 9, 2024

  1. STY: Apply ruff/flake8-bugbear rule B007

    B007 Loop control variable not used within loop body
    
    Co-authored-by: Chris Markiewicz <[email protected]>
    DimitriPapadopoulos and effigies committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    555ddb7 View commit details
    Browse the repository at this point in the history
  2. STY: Apply ruff/flake8-bugbear rule B015

    B015 Pointless comparison at end of function scope.
         Did you mean to return the expression result?
    DimitriPapadopoulos committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    c8760ab View commit details
    Browse the repository at this point in the history
  3. STY: Apply ruff/flake8-bugbear rule B018

    B018 Found useless expression. Either assign it to a variable or remove it.
    DimitriPapadopoulos committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    4aa2db4 View commit details
    Browse the repository at this point in the history
  4. Apply ruff/pycodestyle rule E741

    E741 Ambiguous variable name
    DimitriPapadopoulos committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    7672d5e View commit details
    Browse the repository at this point in the history
  5. STY: Apply ruff/refurb rule FURB154

    FURB154 Use of repeated consecutive `global`
    DimitriPapadopoulos committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    2687eb5 View commit details
    Browse the repository at this point in the history
  6. STY: Apply ruff/Pylint rule PLE0101

    PLE0101 Explicit return in `__init__`
    DimitriPapadopoulos committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    bdcc231 View commit details
    Browse the repository at this point in the history
  7. STY: Apply ruff/Pylint rule PLE1205

    PLE1205 Too many arguments for `logging` format string
    DimitriPapadopoulos committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    5edcd87 View commit details
    Browse the repository at this point in the history
  8. STY: Apply ruff/flake8-pytest-style rule PT006

    PT006 Wrong type passed to first argument of `@pytest.mark.parametrize`; expected `tuple`
    DimitriPapadopoulos committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    592b1dd View commit details
    Browse the repository at this point in the history
  9. STY: Apply ruff/flake8-pytest-style rule PT007

    PT007 Wrong values type in `@pytest.mark.parametrize` expected `list` of `tuple`
    DimitriPapadopoulos committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    9288256 View commit details
    Browse the repository at this point in the history
  10. STY: Apply ruff/flake8-pytest-style rule PT014

    PT014 Duplicate of test case in `@pytest_mark.parametrize`
    DimitriPapadopoulos committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    dfbe415 View commit details
    Browse the repository at this point in the history
  11. STY: Apply ruff/flake8-quotes rule Q000

    Q000 Single quotes found but double quotes preferred
    DimitriPapadopoulos committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    5161e67 View commit details
    Browse the repository at this point in the history
  12. STY: Apply ruff/flake8-quotes rule Q003

    Q003 Change outer quotes to avoid escaping inner quotes
    DimitriPapadopoulos committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    392ce18 View commit details
    Browse the repository at this point in the history
  13. STY: Apply ruff rule RUF100

    RUF100 Unused blanket `noqa` directive
    DimitriPapadopoulos committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    186d26d View commit details
    Browse the repository at this point in the history
  14. STY: Apply ruff/pyupgrade rule UP008

    UP008 Use `super()` instead of `super(__class__, self)`
    DimitriPapadopoulos committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    422ce65 View commit details
    Browse the repository at this point in the history
  15. STY: Apply ruff/pyupgrade rule UP032

    UP032 Use f-string instead of `format` call
    
    Co-authored-by: Chris Markiewicz <[email protected]>
    DimitriPapadopoulos and effigies committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    0493406 View commit details
    Browse the repository at this point in the history
  16. STY: Enforce ruff rules

    Disable some rules and postpone fixes.
    DimitriPapadopoulos committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    2fff982 View commit details
    Browse the repository at this point in the history