From 1b3f97a4815ad82aa630ee84828e97cfb1aa0fd2 Mon Sep 17 00:00:00 2001 From: Uros <115799310+KatanicU@users.noreply.github.com> Date: Wed, 17 Dec 2025 12:55:17 +0100 Subject: [PATCH 1/3] Add new pre_commit_hook --- .pre-commit-hooks.yaml | 8 ++++++++ setup.cfg | 1 + 2 files changed, 9 insertions(+) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index b71169bb..49ea6fc5 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -210,3 +210,11 @@ types: [text] stages: [pre-commit, pre-push, manual] minimum_pre_commit_version: 3.2.0 +- id: forbid-articles + name: forbid articles + description: forbid articles (a,an,the). + entry: forbid-articles + language: python + types: [text] + stages: [pre-commit, pre-push, manual] + minimum_pre_commit_version: 3.2.0 diff --git a/setup.cfg b/setup.cfg index 3b7e5eec..9280cf3b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -63,6 +63,7 @@ console_scripts = requirements-txt-fixer = pre_commit_hooks.requirements_txt_fixer:main sort-simple-yaml = pre_commit_hooks.sort_simple_yaml:main trailing-whitespace-fixer = pre_commit_hooks.trailing_whitespace_fixer:main + forbid-articles = pre_commit_hooks_fork.forbid_articles_in_test_filenames:main [bdist_wheel] universal = True From c54862f037a3f5b17515781d238ebc72a8dfda18 Mon Sep 17 00:00:00 2001 From: Uros <115799310+KatanicU@users.noreply.github.com> Date: Wed, 17 Dec 2025 13:01:16 +0100 Subject: [PATCH 2/3] Add new pre_commit_hook --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 9280cf3b..195c2d23 100644 --- a/setup.cfg +++ b/setup.cfg @@ -63,7 +63,7 @@ console_scripts = requirements-txt-fixer = pre_commit_hooks.requirements_txt_fixer:main sort-simple-yaml = pre_commit_hooks.sort_simple_yaml:main trailing-whitespace-fixer = pre_commit_hooks.trailing_whitespace_fixer:main - forbid-articles = pre_commit_hooks_fork.forbid_articles_in_test_filenames:main + forbid-articles = pre_commit_hooks.forbid_articles_in_test_filenames:main [bdist_wheel] universal = True From be1de4b49528b9ff98f2bf4a4c823f6f253770e0 Mon Sep 17 00:00:00 2001 From: Uros <115799310+KatanicU@users.noreply.github.com> Date: Wed, 17 Dec 2025 13:05:39 +0100 Subject: [PATCH 3/3] Add new pre_commit_hook --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 195c2d23..1a47e6b4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -63,7 +63,7 @@ console_scripts = requirements-txt-fixer = pre_commit_hooks.requirements_txt_fixer:main sort-simple-yaml = pre_commit_hooks.sort_simple_yaml:main trailing-whitespace-fixer = pre_commit_hooks.trailing_whitespace_fixer:main - forbid-articles = pre_commit_hooks.forbid_articles_in_test_filenames:main + forbid-articles = pre_commit_hooks.forbid_articles_in_test_filenames:test_file_name [bdist_wheel] universal = True