diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 732e382659bd08f4e8f2b7e3fba1dec2dc90c9c9..740fbfae0844c51ea5852512c2b56b5ad076d908 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000000000000000000000000000000000..bd44fadf8db48eeb8c053b8b9f02ef7bc5cc8b5b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,16 @@ +--- +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 diff --git a/README.rst b/README.rst index 3c6f2fb508dfce1422327b929881b9c2a5fa7007..3eccb30fd09de7878a622f2ffa630dc8c8b03ab9 100644 --- a/README.rst +++ b/README.rst @@ -1,6 +1,9 @@ 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 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..27e4edadec6b65f7d52acc21f196cf6274300828 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +ansible==2.2.0.0 +pre-commit==0.9.3 +piprot==0.9.7