From efe5d757983b03fc7d6a7864a9c3dd91e7241e01 Mon Sep 17 00:00:00 2001 From: thomas girod Date: Tue, 9 Jul 2024 09:25:14 +0200 Subject: [PATCH] update ruff config Co-authored-by: Bartuccio Antoine --- .pre-commit-config.yaml | 2 +- pyproject.toml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9548a31d..8a98da0d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.4.10 + rev: v0.5.1 hooks: - id: ruff # just check the code, and print the errors - id: ruff # actually fix the fixable errors, but print nothing diff --git a/pyproject.toml b/pyproject.toml index 0a165c93..a52ffc52 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -69,6 +69,9 @@ optional = true [tool.xapian] version = "1.4.25" +[tool.ruff] +output-format = "concise" # makes ruff error logs easier to read + [tool.ruff.lint] select = [ "A", # shadowing of Python builtins