From 24bf3c8ad602f688ec31cff861de6071df584454 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sun, 13 Mar 2016 15:01:58 +0200 Subject: [PATCH] - Added support for pre-commit. --- .pre-commit-config.yaml | 13 +++++++++++++ README.rst | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..cf91a48 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,13 @@ +- repo: git://github.com/pre-commit/pre-commit-hooks + sha: 97b88d9610bcc03982ddac33caba98bb2b751f5f + hooks: + - id: check-added-large-files + - id: check-json + - id: check-xml + - id: check-yaml + - id: check-merge-conflict +- repo: https://www.shore.co.il/git/shell-pre-commit/ + sha: 604fe77b53d3514d5ad0f66764c7783850bb6e98 + hooks: + - id: shell-lint + file: ssh-ca diff --git a/README.rst b/README.rst index 39d1e6f..7e4ac8a 100644 --- a/README.rst +++ b/README.rst @@ -88,7 +88,8 @@ Development To ease development :code:`make clean`, :code:`make lint` and :code:`make test` are available. It's recommended to add :code:`make lint` and :code:`make test` -to to your Git pre-commit and pre-push hooks accourdingly. +to to your Git pre-commit and pre-push hooks accourdingly. Also, this repo has +`pre-commit <http://pre-commit.com/>`_ configured. License ------- -- GitLab