diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 04870d16bf..aecc11eb22 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.1 + rev: v0.8.0 hooks: - id: ruff args: [--fix, --unsafe-fixes] diff --git a/pyproject.toml b/pyproject.toml index dbb1352013..61a0c91a67 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -114,8 +114,8 @@ check = [ # local - # changed defaults for PT001 and PT023 astral-sh/ruff#13292 - "ruff >= 0.7.0; sys_platform != 'cygwin'", + # Removal of deprecated UP027, PT004 & PT005 astral-sh/ruff#14383 + "ruff >= 0.8.0; sys_platform != 'cygwin'", ] cover = [ diff --git a/ruff.toml b/ruff.toml index 9f20438943..27757bcf4b 100644 --- a/ruff.toml +++ b/ruff.toml @@ -29,15 +29,12 @@ extend-select = [ ] ignore = [ "PERF203", # try-except-in-loop, micro-optimisation with many false-positive. Worth checking but don't block CI - "PT004", # deprecated https://github.com/astral-sh/ruff/issues/8796#issuecomment-2057143531 - "PT005", # deprecated https://github.com/astral-sh/ruff/issues/8796#issuecomment-2057143531 "PT007", # temporarily disabled, TODO: configure and standardize to preference "PT011", # temporarily disabled, TODO: tighten expected error "PT012", # pytest-raises-with-multiple-statements, avoid extra dummy methods for a few lines, sometimes we explicitly assert in case of no error "TRY003", # raise-vanilla-args, avoid multitude of exception classes "TRY301", # raise-within-try, it's handy "UP015", # redundant-open-modes, explicit is preferred - "UP027", # unpacked-list-comprehension, is actually slower for cases relevant to unpacking, set for deprecation: https://github.com/astral-sh/ruff/issues/12754 "UP030", # temporarily disabled "UP031", # temporarily disabled "UP032", # temporarily disabled