diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b7b1c09b6..5b322ca38 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -34,7 +34,7 @@ repos: additional_dependencies: [black==23.3.0] - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: "v0.0.272" + rev: "v0.0.276" hooks: - id: ruff args: ["--fix", "--show-fixes"] diff --git a/pyproject.toml b/pyproject.toml index 9dcd89a03..3abf06b6d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -125,10 +125,12 @@ select = [ "NPY", # NumPy specific rules # "PD", # pandas-vet ] + extend-ignore = [ "PLR", # Design related pylint codes "E501", # Line too long "PT004", # Use underscore for non-returning fixture (use usefixture instead) + "RUF012", # Mutable class attributes should be annotated with typing.ClassVar ] target-version = "py37" src = ["src"]