From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id CV6vIYc7Wmotxg4AWB0awg (envelope-from ) for ; Fri, 17 Jul 2026 10:26:15 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=eydeIfqC; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=LIF1dyVu; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=f57/8vDa; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=V7jmn4NX; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 8497F1E033; Fri, 17 Jul 2026 10:26:15 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 91F5D1E033 for ; Fri, 17 Jul 2026 10:26:14 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2DF1F4BA2E0A for ; Fri, 17 Jul 2026 14:26:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2DF1F4BA2E0A Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=eydeIfqC; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=LIF1dyVu; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=f57/8vDa; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=V7jmn4NX Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) by sourceware.org (Postfix) with ESMTPS id DA2934BA5439 for ; Fri, 17 Jul 2026 14:25:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DA2934BA5439 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DA2934BA5439 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=195.135.223.131 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784298332; cv=none; b=mNEnasgl6wfhfpE5LWgqzdtIRVGqK5ns194ZZr7YZLQqe2IlZy6WJDruUMMdgVmbSBa4lnOP/4hzYXTAgyUuZe7N4mwp6MVM30Yo0KEMzDfCys6C4qR3vXBb3Dxw57COuf9aCP5mjpDX0OLE5R6RVEF9pVUt8ScsqPpxS8TCOZc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784298332; c=relaxed/simple; bh=ax/X3HWT8zkD54MI52i90u/XVfRJKSgNUv25xyxe1vs=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:From: To:Subject:Date:Message-ID:MIME-Version; b=swMBl3oZYWd00i6fuVcVDJG4e++Bem7zC0qqGN6xAN8FnwNIeLHPRGvFkGffdI6EwXzMUYy3DEsmLACHOj+WInn5H3y80LXWK1Od1mCutfwUjn0OoFNoC0aR7RdWpVHEtfuds83ODNh3awZ7FDahFm9kwW9K7LTh1t+tSm2/ciQ= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=eydeIfqC; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=LIF1dyVu; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=f57/8vDa; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=V7jmn4NX DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DA2934BA5439 Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id DF1053E43 for ; Fri, 17 Jul 2026 14:25:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1784298331; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Qp8NxxhWn6Ts+sr365cu6VCQUFTH8sRbZj9kDf0EvVs=; b=eydeIfqCVyx6QuKtHOS23Wwoa4ly6D2mV5BE0kUiTueFz4QmNRkD/JgwcKDRuWTpFmOK3B tT5tg2az4mDr47M5F/i8b2Bx0syCX2jD3KTtv3z5bCIixP1UPwNzCf0XMykoTLPVECxOpE iguqxPMabxE/FAgCet81A2Lb4+IqYsk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1784298331; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Qp8NxxhWn6Ts+sr365cu6VCQUFTH8sRbZj9kDf0EvVs=; b=LIF1dyVuB2QoF6FSYiEqRzqbZu8GDJuXMRCOVcQRj0LVjjNWtGuGFBOm507MFvooAEtoIJ KAyaRiXXiatBI3Bw== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1784298330; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Qp8NxxhWn6Ts+sr365cu6VCQUFTH8sRbZj9kDf0EvVs=; b=f57/8vDaxNJSQHbN2K3WN5ns55qBcnJIT+Z9QSXChJ4trMLLcBsQpQUckICPB0kLTg+m8e xexcqoFMgI5Sgcw7Xnox1UapZpPbUF3SVMONptV7hpT7TKsF70N/TvonLdr/0x5iGM7G7X 2Vj2f2xljxvf3sh8menO7WbYwsrIHmg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1784298330; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Qp8NxxhWn6Ts+sr365cu6VCQUFTH8sRbZj9kDf0EvVs=; b=V7jmn4NXn08sZb1usN4JTuVbxH3olibQPuUiMYjAALHG08APwoRB/T0OhcftABDj68Uc+p cmwfTOpq1SowpHBg== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id CA970779AD for ; Fri, 17 Jul 2026 14:25:30 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id yKREMFo7WmqIHgAAD6G6ig (envelope-from ) for ; Fri, 17 Jul 2026 14:25:30 +0000 From: Tom de Vries To: gdb-patches@sourceware.org Subject: [PATCH 1/2] [pre-commit] Fix yamllint errors in .pre-commit-config.yaml Date: Fri, 17 Jul 2026 16:25:29 +0200 Message-ID: <20260717142530.61727-2-tdevries@suse.de> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260717142530.61727-1-tdevries@suse.de> References: <20260717142530.61727-1-tdevries@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-2.80 / 50.00]; BAYES_HAM(-3.00)[100.00%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; FUZZY_RATELIMITED(0.00)[rspamd.com]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo,suse.de:mid]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[gdb-patches@sourceware.org]; RCVD_TLS_ALL(0.00)[] X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org I ran yamllint [1] on .pre-commit-config.yaml and ran into a few errors: - missing document start marker - indentation errors - white space error Fix these. With git show -w, the only change is adding the missing document start marker. [1] https://github.com/adrienverge/yamllint --- .pre-commit-config.yaml | 113 ++++++++++++++++++++-------------------- 1 file changed, 57 insertions(+), 56 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 141f14ba72c..957c896e66e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -37,6 +37,7 @@ # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks +--- minimum_pre_commit_version: 4.5.1 default_install_hook_types: [pre-commit, commit-msg] default_stages: [pre-commit] @@ -58,78 +59,78 @@ repos: - repo: https://github.com/psf/black-pre-commit-mirror rev: 26.5.1 hooks: - - id: black - types_or: &gdb_python_types [file] - files: &gdb_python_files '^gdb/.*\.py(\.in)?$' - - repo: https://github.com/pycqa/flake8 + - id: black + types_or: &gdb_python_types [file] + files: &gdb_python_files '^gdb/.*\.py(\.in)?$' + - repo: https://github.com/pycqa/flake8 rev: 7.3.0 hooks: - - id: flake8 - types_or: *gdb_python_types - files: *gdb_python_files - args: [--config, gdb/setup.cfg] + - id: flake8 + types_or: *gdb_python_types + files: *gdb_python_files + args: [--config, gdb/setup.cfg] - repo: https://github.com/pycqa/isort rev: 9.0.0b1 hooks: - - id: isort - types_or: *gdb_python_types - files: *gdb_python_files + - id: isort + types_or: *gdb_python_types + files: *gdb_python_files # Codespell hooks. - repo: https://github.com/codespell-project/codespell rev: v2.4.3 hooks: - - id: codespell - args: &codespell_args [--toml, gdb/pyproject.toml] - files: &gdb_files '^(gdb|gdbserver|gdbsupport)/' - - id: codespell - name: codespell-log - entry: gdb/contrib/codespell-log.sh - args: *codespell_args - verbose: true - stages: [commit-msg] + - id: codespell + args: &codespell_args [--toml, gdb/pyproject.toml] + files: &gdb_files '^(gdb|gdbserver|gdbsupport)/' + - id: codespell + name: codespell-log + entry: gdb/contrib/codespell-log.sh + args: *codespell_args + verbose: true + stages: [commit-msg] # Tclint hooks. - repo: https://github.com/nmoroze/tclint rev: v0.8.0 hooks: - - id: tclint - args: [--trust-plugins] - files: '^gdb/testsuite/.*\.(exp|tcl)$' + - id: tclint + args: [--trust-plugins] + files: '^gdb/testsuite/.*\.(exp|tcl)$' # Local hooks. - repo: local hooks: - - id: &id0 check-include-guards - name: *id0 - language: unsupported_script - entry: gdb/check-include-guards.py - # All gdb header files, but not headers in the test suite. - files: '^(gdb(support|server)?)/.*\.h$' - exclude: '.*/testsuite/.*' - - id: &id1 check-gnu-style - name: *id1 - language: python - additional_dependencies: ['termcolor', 'unidiff'] - entry: gdb/contrib/check-gnu-style-pre-commit.sh - files: '^(gdb(support|server)?)/.*\.(c|h|cc)$' - exclude: '.*/testsuite/.*' - verbose: true - - id: &id2 check-whitespace - name: *id2 - language: unsupported_script - entry: gdb/contrib/check-whitespace-pre-commit.py - types: ['text'] - files: *gdb_files - - id: &id3 pre-commit-setup - name: *id3 - language: python - entry: gdb/contrib/pre-commit-setup.py - additional_dependencies: ["pyyaml"] - always_run: true - pass_filenames: false - - id: &id4 check-file-mode - name: *id4 - language: unsupported_script - entry: gdb/contrib/check-file-mode.sh - files: *gdb_files + - id: &id0 check-include-guards + name: *id0 + language: unsupported_script + entry: gdb/check-include-guards.py + # All gdb header files, but not headers in the test suite. + files: '^(gdb(support|server)?)/.*\.h$' + exclude: '.*/testsuite/.*' + - id: &id1 check-gnu-style + name: *id1 + language: python + additional_dependencies: ['termcolor', 'unidiff'] + entry: gdb/contrib/check-gnu-style-pre-commit.sh + files: '^(gdb(support|server)?)/.*\.(c|h|cc)$' + exclude: '.*/testsuite/.*' + verbose: true + - id: &id2 check-whitespace + name: *id2 + language: unsupported_script + entry: gdb/contrib/check-whitespace-pre-commit.py + types: ['text'] + files: *gdb_files + - id: &id3 pre-commit-setup + name: *id3 + language: python + entry: gdb/contrib/pre-commit-setup.py + additional_dependencies: ["pyyaml"] + always_run: true + pass_filenames: false + - id: &id4 check-file-mode + name: *id4 + language: unsupported_script + entry: gdb/contrib/check-file-mode.sh + files: *gdb_files -- 2.51.0