From 57e7678c9123fa6a3aa1be0e5e5af0f9a9efef74 Mon Sep 17 00:00:00 2001 From: Jean-Marie Favreau Date: Sun, 2 Mar 2025 16:49:59 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20d'une=20d=C3=A9pendance=20=C3=A0=20pre-?= =?UTF-8?q?commit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 8 ++++++++ src/requirements.dev.txt | 1 + 2 files changed, 9 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..19dce3b --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,8 @@ +default_language_version: + python: python3.13 +repos: + # Using this mirror lets us use mypyc-compiled black, which is about 2x faster + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 25.1.0 + hooks: + - id: black diff --git a/src/requirements.dev.txt b/src/requirements.dev.txt index 3fbf4d6..ebf2bba 100644 --- a/src/requirements.dev.txt +++ b/src/requirements.dev.txt @@ -5,3 +5,4 @@ pytest-sugar==0.9.7 coverage[toml]==7.2.5 black==23.3.0 ruff==0.0.265 +pre-commit==4.1.0 \ No newline at end of file