Skip to content
Snippets Groups Projects
Commit 5c013993 authored by nimrod's avatar nimrod
Browse files

- Added all scripts to pre-commit hooks.

- Removed useless pre-commit checks.
- Added Travis CI test, badge to README.
- Added pre-commit test for outdated requirements.
parent 0eb51078
No related branches found
No related tags found
No related merge requests found
......@@ -2,13 +2,20 @@
sha: cf550fcab3f12015f8676b8278b30e1a5bc10e70
hooks:
- id: check-added-large-files
- id: check-json
- id: check-xml
- id: check-yaml
- id: check-merge-conflict
- id: flake8
- repo: https://www.shore.co.il/git/shell-pre-commit/
sha: v0.1.0
hooks:
- id: shell-lint
files: ansible-syntax-check
files: ansible-syntax-check|ansible-vault-check
- repo: local
hooks:
- id: piprot
name: piprot
description: Check up-to-date Python requirements
language: system
entry: piprot
args: ['--quiet', '--outdated']
files: requirements.txt
always_run: true
---
language: python
python: "2.7"
dist: trusty
sudo: false
group: beta
cache:
- pip
- directories:
- $HOME/.pre-commit
script:
- pre-commit run --all-files
notifications:
email: false
Ansible pre-commit hooks
########################
.. image:: https://travis-ci.org/adarnimrod/ansible-pre-commit.svg?branch=master
:target: https://travis-ci.org/adarnimrod/ansible-pre-commit
Ansible `pre-commit <http://pre-commit.com/>`_ hooks.
- ansible-syntax-check: The hook runs
......
ansible==2.2.0.0
pre-commit==0.9.3
piprot==0.9.7
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment