From 21f0be3265ea365207f8d988d4be04c829f95210 Mon Sep 17 00:00:00 2001 From: Colin Maudry Date: Tue, 3 Jun 2025 14:39:22 +0200 Subject: [PATCH] Ruff formatting --- .pre-commit-config.yaml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bd6e4d4..df4ff68 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,23 +2,20 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 hooks: - - id: check-ast - id: check-case-conflict - id: check-yaml - id: end-of-file-fixer - id: trailing-whitespace - - repo: https://github.com/psf/black - rev: 23.3.0 - hooks: - - id: black - args: [ --config=pyproject.toml ] - - repo: https://github.com/psf/black - rev: 23.3.0 - hooks: - - id: black-jupyter - args: [ --config=pyproject.toml ] - repo: https://github.com/pre-commit/mirrors-prettier rev: v2.5.1 hooks: - id: prettier files: \.(js|css|html|json|md)$ + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.11.12 + hooks: + - id: ruff + files: "^backend/" + - id: ruff + args: [ "check", "--select", "I", "--fix" ] + - id: ruff-format