From 031d020a76045c30e64ecfd8471c67b0874b3f12 Mon Sep 17 00:00:00 2001 From: Stewart Boogert Date: Fri, 4 Aug 2023 21:01:58 +0100 Subject: [PATCH] pyg4ometry : (CI/CD) update RUFF version and ignore RUF012 --- .pre-commit-config.yaml | 2 +- pyproject.toml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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"]