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

- Added pre-commit hooks.

- Cleaned and updated README.
parent 485466ab
No related branches found
No related tags found
No related merge requests found
- repo: git://github.com/pre-commit/pre-commit-hooks - repo: git://github.com/pre-commit/pre-commit-hooks
sha: cf550fcab3f12015f8676b8278b30e1a5bc10e70 sha: 97b88d9610bcc03982ddac33caba98bb2b751f5f
hooks: hooks:
- id: check-added-large-files - id: check-added-large-files
- id: check-json - id: check-json
...@@ -7,3 +7,8 @@ ...@@ -7,3 +7,8 @@
- id: check-yaml - id: check-yaml
- id: check-merge-conflict - id: check-merge-conflict
- id: flake8 - id: flake8
- repo: https://www.shore.co.il/git/shell-pre-commit
sha: e48c7fbdadf14a548dcbda32895b67f90fa0f12b
hooks:
- id: shell-lint
files: collectd/collectd_facts|nginx/nginx_facts|ssl/dhparams
...@@ -13,7 +13,8 @@ at the root of the playbooks directory ...@@ -13,7 +13,8 @@ at the root of the playbooks directory
mkdir library mkdir library
touch library/__init__.py touch library/__init__.py
git submodule add https://www.shore.co.il/cgit/ansible-modules library/shore git submodule add https://www.shore.co.il/git/ansible-modules library/shore master
sudo pip install -r library/shore/requirements.txt
To update the submodule To update the submodule
...@@ -26,12 +27,21 @@ Remember to commit :code:`.gitmodules`! ...@@ -26,12 +27,21 @@ Remember to commit :code:`.gitmodules`!
Modules Modules
------- -------
- <placeholder> - collectd_facts
- ldap_attr
- nginx_facts
- dhparams
License License
------- -------
AGPL v3+ This software is licensed under the AGPL v3+ license (see the
:code:`LICENSE.txt` file).
Testing
-------
Currently the only tests are `pre-commit <http://www.pre-commit.com/>`_ hooks.
Author Author
------ ------
...@@ -39,7 +49,7 @@ Author ...@@ -39,7 +49,7 @@ Author
Nimrod Adar, `contact me <nimrod@shore.co.il>`_ or visit my `website Nimrod Adar, `contact me <nimrod@shore.co.il>`_ or visit my `website
<https://www.shore.co.il/>`_. Patches are welcome via `git send-email <https://www.shore.co.il/>`_. Patches are welcome via `git send-email
<http://git-scm.com/book/en/v2/Git-Commands-Email>`_. The repository is located <http://git-scm.com/book/en/v2/Git-Commands-Email>`_. The repository is located
at: https://www.shore.co.il/cgit/. at: https://www.shore.co.il/git/.
TODO TODO
---- ----
......
File mode changed from 100644 to 100755
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment