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
Loading
Loading
Loading
Loading
+11 −4
Original line number Diff line number Diff line
@@ -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

.travis.yml

0 → 100644
+16 −0
Original line number Diff line number Diff line
---
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
+3 −0
Original line number Diff line number Diff line
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

requirements.txt

0 → 100644
+3 −0
Original line number Diff line number Diff line
ansible==2.2.0.0
pre-commit==0.9.3
piprot==0.9.7