mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 09:38:10 -03:30
added git pre commit hook to run flake8
This commit is contained in:
2
tools/git_hooks/pre-commit
Executable file
2
tools/git_hooks/pre-commit
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
ansible-playbook -i "127.0.0.1," tools/git_hooks/pre_commit.yml
|
||||
8
tools/git_hooks/pre_commit.yml
Normal file
8
tools/git_hooks/pre_commit.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
- hosts: all
|
||||
connection: local
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: lint check w/ flake8
|
||||
command: 'flake8 {{ playbook_dir }}/../../'
|
||||
register: result
|
||||
|
||||
Reference in New Issue
Block a user