From e467fe7c1158d7e6e83aa04daa4b55b3ec957853 Mon Sep 17 00:00:00 2001 From: Filippo Luca Ferretti Date: Fri, 5 Jul 2024 13:28:06 +0200 Subject: [PATCH] Add default language version and formatting options --- .pre-commit-config.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 28643b49e..f12ce981f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,6 +2,10 @@ ci: autofix_prs: false autoupdate_schedule: quarterly submodules: false + +default_language_version: + python: python3.11 + repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.5.0 @@ -16,13 +20,13 @@ repos: rev: 24.2.0 hooks: - id: black - language_version: python3.11 + args: ["--check", "--diff"] - repo: https://github.com/pycqa/isort rev: 5.13.2 hooks: - id: isort - name: isort (python) + args: ["--check", "--diff"] - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.3.2