File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change
1
+ repos :
2
+ - repo : https://github.com/pre-commit/pre-commit-hooks
3
+ rev : v4.4.0
4
+ hooks :
5
+ - id : check-yaml
6
+ - id : end-of-file-fixer
7
+ - id : trailing-whitespace
8
+ - repo : https://github.com/sirwart/ripsecrets
9
+ rev : v0.1.7
10
+ hooks :
11
+ - id : ripsecrets
Original file line number Diff line number Diff line change 1
1
---
2
2
- name : Install pre-commit hooks
3
3
hosts : localhost
4
- become : true
5
4
gather_facts : false
6
5
tasks :
7
6
- name : Install pre-commit hooks into kayobe virtual env
8
7
ansible.builtin.pip :
9
8
name : pre-commit
10
9
version : 3.5.0
11
10
virtualenv : " {{ lookup('ansible.builtin.env', 'VIRTUAL_ENV') }}"
11
+
12
+ - name : Register pre-commit hooks with git
13
+ ansible.builtin.command :
14
+ cmd : " {{ lookup('ansible.builtin.env', 'VIRTUAL_ENV') }}/bin/pre-commit install"
15
+ creates : " {{ lookup('ansible.builtin.env', 'KAYOBE_CONFIG_PATH') }}/../../.git/hooks/pre-commit"
16
+ args :
17
+ chdir : " {{ lookup('ansible.builtin.env', 'KAYOBE_CONFIG_PATH') }}"
You can’t perform that action at this time.
0 commit comments