diff --git a/pyproject.toml b/pyproject.toml index 797362dea5..e2bfb3e2a5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -118,8 +118,8 @@ check = [ # local - # Removal of deprecated UP027, PT004 & PT005 astral-sh/ruff#14383 - "ruff >= 0.8.0; sys_platform != 'cygwin'", + # Deprecated rules must now be selected by exact rule code + "ruff >= 0.13.0; sys_platform != 'cygwin'", ] cover = [ @@ -139,7 +139,7 @@ type = [ # pin mypy version so a new version doesn't suddenly cause the CI to fail, # until types-setuptools is removed from typeshed. # For help with static-typing issues, or mypy update, ping @Avasam - "mypy==1.14.*", + "mypy==1.18.*", # Typing fixes in version newer than we require at runtime "importlib_metadata>=7.0.2; python_version < '3.10'", # Imported unconditionally in tools/finalize.py diff --git a/ruff.toml b/ruff.toml index 20c06adaec..567074d50a 100644 --- a/ruff.toml +++ b/ruff.toml @@ -65,7 +65,6 @@ ignore = [ "TRY003", # raise-vanilla-args, avoid multitude of exception classes "TRY301", # raise-within-try, it's handy "UP015", # redundant-open-modes, explicit is preferred - "UP038", # Using `X | Y` in `isinstance` call is slower and more verbose https://github.com/astral-sh/ruff/issues/7871 # Only enforcing return type annotations for public functions "ANN202", # missing-return-type-private-function ] @@ -73,6 +72,7 @@ ignore = [ [lint.per-file-ignores] # Suppress nuisance warnings about module-import-not-at-top-of-file (E402) due to workaround for #4476 "setuptools/__init__.py" = ["E402"] +# pkg_resources is due for removal, not worth fixing existing errors "pkg_resources/__init__.py" = ["E402", "ANN204"] "pkg_resources/tests/test_resources.py" = ["PT031"]