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 24 commits into
base: master
Choose a base branch
from

Commits on Nov 24, 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 Nov 24, 2024
    Configuration menu
    Copy the full SHA
    014135c 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 Nov 24, 2024
    Configuration menu
    Copy the full SHA
    51f712d 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 Nov 24, 2024
    Configuration menu
    Copy the full SHA
    c17bc9f View commit details
    Browse the repository at this point in the history
  4. Apply ruff/pycodestyle rule E741

    E741 Ambiguous variable name
    DimitriPapadopoulos committed Nov 24, 2024
    Configuration menu
    Copy the full SHA
    e3227a4 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 Nov 24, 2024
    Configuration menu
    Copy the full SHA
    121695e 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 Nov 24, 2024
    Configuration menu
    Copy the full SHA
    b429e2d 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 Nov 24, 2024
    Configuration menu
    Copy the full SHA
    00e19f4 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 Nov 24, 2024
    Configuration menu
    Copy the full SHA
    f0b6d58 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 Nov 24, 2024
    Configuration menu
    Copy the full SHA
    990205b 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 Nov 24, 2024
    Configuration menu
    Copy the full SHA
    b068cae 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 Nov 24, 2024
    Configuration menu
    Copy the full SHA
    874b108 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 Nov 24, 2024
    Configuration menu
    Copy the full SHA
    778ab94 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 Nov 24, 2024
    Configuration menu
    Copy the full SHA
    7b23137 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 Nov 24, 2024
    Configuration menu
    Copy the full SHA
    adf037f 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 Nov 24, 2024
    Configuration menu
    Copy the full SHA
    c9ee512 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 Nov 24, 2024
    Configuration menu
    Copy the full SHA
    effe909 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    a9f97ca View commit details
    Browse the repository at this point in the history
  18. STY: Apply ruff/flake8-bugbear rule B010

    B010 Do not call `setattr` with a constant attribute value.
         It is not any safer than normal property access.
    DimitriPapadopoulos committed Nov 24, 2024
    Configuration menu
    Copy the full SHA
    ac68f1a View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    dd57d7a View commit details
    Browse the repository at this point in the history
  20. STY: Apply ruff/Pyflakes rule F522

    F522 `.format` call has unused named argument
    DimitriPapadopoulos committed Nov 24, 2024
    Configuration menu
    Copy the full SHA
    45bc797 View commit details
    Browse the repository at this point in the history
  21. Apply ruff/Pyflakes rule F821

    F821 Undefined name
    DimitriPapadopoulos committed Nov 24, 2024
    Configuration menu
    Copy the full SHA
    92a6ffd View commit details
    Browse the repository at this point in the history
  22. Apply ruff rule RUF100

    RUF100 Unused blanket `noqa` directive
    RUF100 Unused `noqa` directive
    DimitriPapadopoulos committed Nov 24, 2024
    Configuration menu
    Copy the full SHA
    6d7277a View commit details
    Browse the repository at this point in the history
  23. Apply ruff/pyupgrade rule UP015

    UP015 Unnecessary open mode parameters
    DimitriPapadopoulos committed Nov 24, 2024
    Configuration menu
    Copy the full SHA
    802475e View commit details
    Browse the repository at this point in the history
  24. Apply ruff/pyupgrade rule UP025

    UP025 Remove unicode literals from strings
    DimitriPapadopoulos committed Nov 24, 2024
    Configuration menu
    Copy the full SHA
    8f84741 View commit details
    Browse the repository at this point in the history