diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 00907e352..7621407e8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.23.1 + rev: 0.23.2 hooks: - id: check-github-workflows @@ -28,8 +28,8 @@ repos: hooks: - id: black - - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.270 + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.0.276 hooks: - id: ruff args: ["--fix"] diff --git a/pyproject.toml b/pyproject.toml index 5a5174358..2e366f0bd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -144,7 +144,7 @@ dependencies = [ "black[jupyter]==22.10.0", "mdformat>0.7", "mdformat-gfm>=0.3.5", - "ruff==0.0.263" + "ruff==0.0.276" ] detached = true [tool.hatch.envs.lint.scripts] @@ -266,6 +266,8 @@ ignore = [ "FBT001", "FBT002", "FBT003", # C408 Unnecessary `dict` call (rewrite as a literal) "C408", "C416", +# RUF012 Mutable class attributes should be annotated with `typing.ClassVar` +"RUF012", ] [tool.ruff.per-file-ignores]