Skip to content

Commit 0e8a9c9

Browse files
committed
pre-commit: Update multiple hooks, ansible-doctor v4.0.1
1 parent 55fc932 commit 0e8a9c9

File tree

4 files changed

+17
-11
lines changed

4 files changed

+17
-11
lines changed

.github/workflows/ansible-doctor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ jobs:
2424

2525
- name: Install ansible-doctor
2626
run: |
27-
python -m pip install ansible-doctor==2.0.4
27+
python -m pip install ansible-doctor==4.0.1 ansible-core==2.16.2
2828
2929
- name: ansible-doctor test
3030
run: |
31-
ansible-doctor -f -r roles
31+
ansible-doctor --force --no-role-detection --recursive roles
3232
3333
- name: git diff of ansible-doctor
3434
run: git diff --exit-code

.pre-commit-config.yaml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
# See https://pre-commit.com/hooks.html for more hooks
44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v4.4.0
6+
rev: v4.5.0
77
hooks:
88
- id: trailing-whitespace
9+
exclude: ^roles/.*/README.md
910
- id: end-of-file-fixer
1011
- id: check-yaml
1112
- id: check-symlinks
@@ -17,16 +18,15 @@ repos:
1718
- id: no-commit-to-branch
1819

1920
- repo: https://github.com/python/black.git
20-
rev: 23.3.0
21+
rev: 23.10.1
2122
hooks:
2223
- id: black
2324
# language_version: python3
2425
# files: plugins/modules/*.py
25-
files: \.py$
26-
include: plugins/modules
26+
files: ^plugins/modules/.*\.py$
2727

2828
- repo: https://github.com/pycqa/flake8
29-
rev: '6.0.0'
29+
rev: '6.1.0'
3030
hooks:
3131
- id: flake8
3232

@@ -37,15 +37,17 @@ repos:
3737
# - id: shfmt
3838

3939
- repo: https://github.com/ansible-community/antsibull-changelog.git
40-
rev: 0.22.0
40+
rev: 0.23.0
4141
hooks:
4242
- id: antsibull-changelog-lint
4343

4444
- repo: https://github.com/thegeeklab/ansible-doctor
45-
rev: v2.0.4
45+
rev: v4.0.1
4646
hooks:
4747
- id: ansible-doctor
48-
entry: ansible-doctor -r -f roles
48+
entry: ansible-doctor --force --no-role-detection --recursive roles
49+
additional_dependencies:
50+
- ansible-core
4951

5052
- repo: https://github.com/ansible-community/ansible-lint.git
5153
rev: v6.22.1
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
minor_changes:
3+
- "ansible-doctor: Update to 4.0.1 (oravirt#397)"
4+
- "pre-commit: Update multiple hooks (oravirt#397)"

tools/dev/requirements_doctor.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
# execute ansible-doctor:
1616
# ~/venv/ansible-doctor/bin/ansible-doctor
1717
#
18-
ansible-doctor==2.0.4
18+
ansible-doctor==4.0.1

0 commit comments

Comments
 (0)