From 381c6c435daf80230736415c078521804109d062 Mon Sep 17 00:00:00 2001 From: Carol Willing Date: Fri, 17 Nov 2023 11:22:55 -0800 Subject: [PATCH 1/2] Ignore .po files for caps pre-commit hook --- .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 a181cd2c4..c4a3ab93e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,7 +22,7 @@ repos: - id: disallow-caps name: Disallow improper capitalization language: pygrep - entry: PyBind|Numpy|Cmake|CCache|Github|PyTest + entry: PyBind|Numpy|Cmake|CCache|Github|PyTest|*.po exclude: .pre-commit-config.yaml - repo: https://github.com/pre-commit/pygrep-hooks @@ -33,7 +33,7 @@ repos: - id: rst-inline-touching-normal - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.5 + rev: v0.1.6 hooks: - id: ruff - id: ruff-format From e15b7f489d868288f4d013e34ade99a952e1a5d2 Mon Sep 17 00:00:00 2001 From: Carol Willing Date: Sat, 18 Nov 2023 12:15:13 -0800 Subject: [PATCH 2/2] exclude po file types --- .pre-commit-config.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c4a3ab93e..fcc1b0d0f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,8 +22,9 @@ repos: - id: disallow-caps name: Disallow improper capitalization language: pygrep - entry: PyBind|Numpy|Cmake|CCache|Github|PyTest|*.po + entry: PyBind|Numpy|Cmake|CCache|Github|PyTest exclude: .pre-commit-config.yaml + exclude_types: ["pofile"] - repo: https://github.com/pre-commit/pygrep-hooks rev: v1.10.0