From e17440571a835666cdeffeb12c59cd14f07395a3 Mon Sep 17 00:00:00 2001 From: Dave Chen Date: Thu, 12 Jun 2025 10:30:53 -0400 Subject: [PATCH 1/3] Add C, C++, CSharp file types to precommit --- .pre-commit-hooks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index bc908ed..1bb21d3 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -5,4 +5,4 @@ entry: comment_spell_check language: python minimum_pre_commit_version: 2.9.2 - types_or: [python, rst, markdown, ruby, java ] + types_or: [python, rst, markdown, ruby, java, c++, c, csharp ] From 98da27b09d3737b5bc345f02a0b7f3a23f3a4b67 Mon Sep 17 00:00:00 2001 From: Dave Chen Date: Thu, 12 Jun 2025 13:51:12 -0400 Subject: [PATCH 2/3] Changed 'csharp' to 'c#' --- .pre-commit-hooks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 1bb21d3..de9b2d9 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -5,4 +5,4 @@ entry: comment_spell_check language: python minimum_pre_commit_version: 2.9.2 - types_or: [python, rst, markdown, ruby, java, c++, c, csharp ] + types_or: [python, rst, markdown, ruby, java, c++, c, c# ] From 1d2da72d23be48e7666c13b1881166b06055e6d8 Mon Sep 17 00:00:00 2001 From: Dave Chen Date: Thu, 12 Jun 2025 14:51:49 -0400 Subject: [PATCH 3/3] Changed Ruby suffix to ".rb" --- comment_spell_check/comment_spell_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comment_spell_check/comment_spell_check.py b/comment_spell_check/comment_spell_check.py index e5a793b..686b7e3 100755 --- a/comment_spell_check/comment_spell_check.py +++ b/comment_spell_check/comment_spell_check.py @@ -54,7 +54,7 @@ ".c": "text/x-c++", ".hxx": "text/x-c++", ".py": "text/x-python", - ".ruby": "text/x-ruby", + ".rb": "text/x-ruby", ".java": "text/x-java-source", ".txt": "text/plain", ".rst": "text/plain",