From dee4cd4eecf5cb241bc79d28f38a35b8b851ab9f Mon Sep 17 00:00:00 2001 From: Souma <101255979+5ouma@users.noreply.github.com> Date: Fri, 6 Dec 2024 19:46:50 +0900 Subject: [PATCH] ci(pre-commit): Check all code with CI Keep the code clean and secure. --- .github/workflows/pre-commit.yml | 16 ++++++++++++++++ .typos.toml | 1 + data/pre-commit.yml | 1 + 3 files changed, 18 insertions(+) create mode 100644 .github/workflows/pre-commit.yml diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 00000000..1bb34e86 --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,16 @@ +name: 🚸 pre-commit + +on: + push: + branches: [main] + pull_request: + +jobs: + pre-commit: + runs-on: Ubuntu-Latest + + steps: + - name: 🚸 Run pre-commit + uses: 5ouma/utils/pre-commit@c1a3a841a7aa50337b15fe6f92f8d5f56c441cfb # main + with: + config: data/pre-commit.yml diff --git a/.typos.toml b/.typos.toml index 0e9f43b9..ca3c37c3 100644 --- a/.typos.toml +++ b/.typos.toml @@ -3,3 +3,4 @@ OnyX = "OnyX" [default.extend-words] iterm = "iterm" +Pn = "Pn" diff --git a/data/pre-commit.yml b/data/pre-commit.yml index 611a1c8e..3f3b1d1c 100644 --- a/data/pre-commit.yml +++ b/data/pre-commit.yml @@ -40,6 +40,7 @@ repos: rev: v0.43.0 hooks: - id: markdownlint-fix + args: [--disable, MD013, MD023, MD024, MD033, MD036] - repo: https://github.com/koalaman/shellcheck-precommit rev: v0.10.0