diff --git a/.ansible-lint b/.ansible-lint index b8955f4a4..5f3fa2d81 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -38,5 +38,6 @@ exclude_paths: - venv - .github - .ansible + - .cache mock_modules: - gluster.gluster.gluster_volume diff --git a/.gitlab-ci/lint.yml b/.gitlab-ci/lint.yml index cf81c5517..b00711179 100644 --- a/.gitlab-ci/lint.yml +++ b/.gitlab-ci/lint.yml @@ -3,15 +3,16 @@ pre-commit: stage: test tags: - ffci - image: 'ghcr.io/pre-commit-ci/runner-image@sha256:aaf2c7b38b22286f2d381c11673bec571c28f61dd086d11b43a1c9444a813cef' + image: 'ghcr.io/pre-commit-ci/runner-image@sha256:fe01a6ec51b298412990b88627c3973b1146c7304f930f469bafa29ba60bcde9' variables: - PRE_COMMIT_HOME: /pre-commit-cache + PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit script: - pre-commit run --all-files cache: - key: pre-commit-all + key: pre-commit-2 paths: - - /pre-commit-cache + - ${PRE_COMMIT_HOME} + when: 'always' needs: [] vagrant-validate: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 68e48fe86..60a039960 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: check-added-large-files - id: check-case-conflict @@ -15,7 +15,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/adrienverge/yamllint.git - rev: v1.35.1 + rev: v1.37.1 hooks: - id: yamllint args: [--strict] @@ -27,7 +27,7 @@ repos: exclude: "^.github|(^docs/_sidebar\\.md$)" - repo: https://github.com/shellcheck-py/shellcheck-py - rev: v0.10.0.1 + rev: v0.11.0.1 hooks: - id: shellcheck args: ["--severity=error"] @@ -35,7 +35,7 @@ repos: files: "\\.sh$" - repo: https://github.com/ansible/ansible-lint - rev: v24.12.2 + rev: v25.11.0 hooks: - id: ansible-lint additional_dependencies: @@ -45,7 +45,7 @@ repos: - distlib - repo: https://github.com/golangci/misspell - rev: v0.6.0 + rev: v0.7.0 hooks: - id: misspell exclude: "OWNERS_ALIASES$"