From 17f9be2b924abd7948838370af1661173449c094 Mon Sep 17 00:00:00 2001 From: Jens Heinrich Date: Mon, 13 Sep 2021 16:14:49 +0200 Subject: [PATCH 1/4] Initial precommit hook --- .pre-commit-hooks.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .pre-commit-hooks.yaml diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml new file mode 100644 index 0000000..9abee9f --- /dev/null +++ b/.pre-commit-hooks.yaml @@ -0,0 +1,6 @@ +--- +- id: alex + name: Alex + description: "Check files to 'find gender favoring, polarizing, race related, religion inconsiderate, or other unequal phrasing in text.'" + entry: alex + language: node From 1fe7cd7e357f14ede9c1f31cebf46cc4dc267815 Mon Sep 17 00:00:00 2001 From: Jens Heinrich Date: Mon, 13 Sep 2021 16:17:54 +0200 Subject: [PATCH 2/4] Restrict types --- .pre-commit-hooks.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 9abee9f..10a0177 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -4,3 +4,5 @@ description: "Check files to 'find gender favoring, polarizing, race related, religion inconsiderate, or other unequal phrasing in text.'" entry: alex language: node + types: + - text From 6a08eb5dad8b012758b8841d65d749fb56b78dbe Mon Sep 17 00:00:00 2001 From: Jens Heinrich Date: Mon, 13 Sep 2021 16:20:11 +0200 Subject: [PATCH 3/4] Run on directory not files --- .pre-commit-hooks.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 10a0177..f2d60b1 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -6,3 +6,4 @@ language: node types: - text + pass_filenames: false From 1d1d392d7e57f17790b68ca2075898ea1867ea25 Mon Sep 17 00:00:00 2001 From: Jens Heinrich Date: Mon, 13 Sep 2021 16:31:34 +0200 Subject: [PATCH 4/4] Add pre-commit-config to use repo as its own test --- .pre-commit-config.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..626d90b --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,8 @@ +--- +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +repos: + - repo: https://github.com/get-alex/alex + rev: 6a08eb5dad8b012758b8841d65d749fb56b78dbe # TODO Replace with a tag + hooks: + - id: alex