diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index cc7b018..8cb6f83 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -38,7 +38,7 @@ jobs: fetch-depth: 0 - uses: wagoid/commitlint-github-action@v5 with: - configFile: "./.github/commitlint.config.js" + configFile: "../.github/commitlint.config.js" pre-commit: runs-on: ubuntu-latest diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 8edefd9..4ce6e5e 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -30,7 +30,7 @@ jobs: fetch-depth: 0 - uses: wagoid/commitlint-github-action@v5 with: - configFile: "./.github/commitlint.config.js" + configFile: "../.github/commitlint.config.js" pre-commit: runs-on: ubuntu-latest diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1390fb8..ab4f823 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/psf/black - rev: 23.1.0 + rev: 23.11.0 hooks: - id: black language_version: python3 @@ -9,7 +9,7 @@ repos: hooks: - id: isort - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: trailing-whitespace - id: check-ast @@ -30,4 +30,10 @@ repos: - repo: https://gitlab.com/bmares/check-json5 rev: v1.0.0 hooks: - - id: check-json5 + - id: check-json5 + - repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook + rev: v9.8.0 + hooks: + - id: commitlint + stages: [commit-msg] + additional_dependencies: ['@commitlint/config-conventional'] diff --git a/.github/commitlint.config.js b/commitlint.config.js similarity index 100% rename from .github/commitlint.config.js rename to commitlint.config.js