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: Apply ruff/flake8-simplify rules (SIM) #3676

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Commits on Sep 22, 2024

  1. STY: Apply ruff/flake8-simplify rule SIM101

    SIM101 Multiple `isinstance` calls for expression, merge into a single call
    DimitriPapadopoulos committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    c6b5665 View commit details
    Browse the repository at this point in the history
  2. STY: Apply ruff/flake8-simplify rule SIM103

    SIM103 Return the condition directly
    DimitriPapadopoulos committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    f1761f2 View commit details
    Browse the repository at this point in the history
  3. STY: Apply ruff/flake8-simplify rule SIM113

    SIM113 Use `enumerate()` for index variable in `for` loop
    DimitriPapadopoulos committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    33ae2ad View commit details
    Browse the repository at this point in the history
  4. STY: Apply ruff/flake8-simplify rule SIM115

    SIM115 Use a context manager for opening files
    DimitriPapadopoulos committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    75230f7 View commit details
    Browse the repository at this point in the history
  5. STY: Apply ruff/flake8-simplify rule SIM118

    SIM118 Use `key in dict` instead of `key in dict.keys()`
    DimitriPapadopoulos committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    4b1d85b View commit details
    Browse the repository at this point in the history
  6. STY: Apply ruff/flake8-simplify rule SIM201

    SIM201 Use `... != ...` instead of `not ... == ...`
    DimitriPapadopoulos committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    1523d04 View commit details
    Browse the repository at this point in the history
  7. STY: Apply ruff/flake8-simplify rule SIM401

    SIM401 Use `.get()` instead of an `if` block
    DimitriPapadopoulos committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    6542864 View commit details
    Browse the repository at this point in the history