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

Enable ruff/pyupgrade rules (UP) and fix issues #1703

Closed

Commits on May 12, 2024

  1. Enable ruff/pyupgrade rules (UP)

    As suggested by Repo-Review.
    DimitriPapadopoulos committed May 12, 2024
    Configuration menu
    Copy the full SHA
    c0f94e9 View commit details
    Browse the repository at this point in the history
  2. Apply ruff/pyupgrade rule UP006

    UP006 Use `dict` instead of `Dict` for type annotation
    UP006 Use `list` instead of `List` for type annotation
    UP006 Use `tuple` instead of `Tuple` for type annotation
    
    https://docs.astral.sh/ruff/rules/non-pep585-annotation/
    DimitriPapadopoulos committed May 12, 2024
    Configuration menu
    Copy the full SHA
    65d7dbd View commit details
    Browse the repository at this point in the history
  3. Apply ruff/pyupgrade rule UP031

    UP031 Use format specifiers instead of percent format
    
    https://docs.astral.sh/ruff/rules/printf-string-formatting/
    DimitriPapadopoulos committed May 12, 2024
    Configuration menu
    Copy the full SHA
    cf478cd View commit details
    Browse the repository at this point in the history
  4. Apply ruff/pyupgrade issue UP033

    UP033 Use `@functools.cache` instead of `@functools.lru_cache(maxsize=None)`
    
    https://docs.astral.sh/ruff/rules/lru-cache-with-maxsize-none/
    DimitriPapadopoulos committed May 12, 2024
    Configuration menu
    Copy the full SHA
    ec04f4c View commit details
    Browse the repository at this point in the history
  5. Apply ruff/pyupgrade issue UP035

    UP035 Import from `collections.abc` instead: `Iterable`, `Iterator`, `Mapping`, `Sequence`
    
    https://docs.astral.sh/ruff/rules/deprecated-import/
    DimitriPapadopoulos committed May 12, 2024
    Configuration menu
    Copy the full SHA
    be98763 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    289ff29 View commit details
    Browse the repository at this point in the history