From 2375ad118d0992ff369edc92ba1a6780d672a3fa Mon Sep 17 00:00:00 2001 From: Julien Rottenberg Date: Tue, 23 Apr 2024 23:54:48 -0700 Subject: [PATCH] fix: install extra group when using pre-commit (#687) --- .pre-commit-hooks.yaml | 2 ++ docs/content/usage/configuration.md | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 17f24bf..0ae9df1 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -6,3 +6,5 @@ language: python pass_filenames: False always_run: True + additional_dependencies: + - .[ansible-core] diff --git a/docs/content/usage/configuration.md b/docs/content/usage/configuration.md index 78deb6e..e9562be 100644 --- a/docs/content/usage/configuration.md +++ b/docs/content/usage/configuration.md @@ -119,8 +119,8 @@ To use _ansible-doctor_ with the [pre-commit](https://pre-commit.com/) framework {{< highlight yaml "linenos=table" >}} - repo: https://github.com/thegeeklab/ansible-doctor - # change ref to the latest release from https://github.com/thegeeklab/ansible-doctor/releases - rev: v1.4.8 + # update version with `pre-commit autoupdate` + rev: v4.0.4 hooks: - id: ansible-doctor {{< /highlight >}}