From 27bd9f0126791fd39556dc2eb82e82a312052ab8 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Tue, 17 Nov 2026 06:20:03 +1000 Subject: [PATCH] [CI] Add pre-commit hook `name-tests-test` to verify that Python test files are named correctly https://github.com/pre-commit/pre-commit-hooks#name-tests-test --- .pre-commit-config.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3c573ec8da27..d44bdc89007a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -182,6 +182,8 @@ repos: - id: fix-byte-order-marker - id: forbid-submodules - id: mixed-line-ending + - id: name-tests-test + args: [--pytest-test-first] - id: trailing-whitespace files: ^(LICENSE|NOTICE)$|README$|\.(bat|cfg|config|cs|css|erb|gitignore|header|in|install|java|md|properties|py|rb|rc|sh|sql|svg|te|template|txt|ucls|vue|xml|xsl|yaml|yml)$|^cloud-cli/bindir/cloud-tool$|^debian/changelog$ args: [--markdown-linebreak-ext=md]