From e72ee0b1c8f3ba1434e5b4cc163943f7de1a1d19 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 4 Jun 2024 16:51:08 +1000 Subject: [PATCH] pre-commit: ignore subprojects for ruff and black We don't have any subprojects yet but let's not fail badly for something that's not our fault. Part-of: --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a92e501b..f9763e7d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,12 +10,12 @@ repos: rev: 22.10.0 hooks: - id: black - args: ['--check', '--diff', '.'] + args: ['--check', '--diff', '--extend-exclude=subprojects', '.'] - repo: https://github.com/charliermarsh/ruff-pre-commit rev: v0.0.254 hooks: - id: ruff - args: ['--ignore=E741,E501', '.'] + args: ['--ignore=E741,E501', '--extend-exclude=subprojects', '.'] - repo: https://gitlab.freedesktop.org/freedesktop/ci-templates.git rev: 7402203527f61d6473d55ad701172d1606508c52 hooks: