diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4db1983c..b8e0b5da 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ repos: hooks: - id: check-yaml - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.13 + rev: v0.15.1 hooks: - id: ruff-check args: [ --fix ] diff --git a/pyproject.toml b/pyproject.toml index c527642b..6d7e8671 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -69,12 +69,14 @@ ignore = [ "E741", # Ambiguous variable name # ruff ignore "RUF012", # Mutable class attributes should be annotated with `typing.ClassVar` + "RUF061", # Use context-manager form of `pytest.raises()` # pylint ignore "PLW0603", # Using the global statement "PLW0120", # remove the else and dedent its contents "PLW2901", # for loop variable overwritten by assignment target "PLR5501", # Use `elif` instead of `else` then `if` "UP031", # Use format specifiers instead of percent format + ] [tool.ruff.lint.isort]