From 5373b93e3f954cb00432f9344c15030ae6faf1c4 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Fri, 14 May 2021 22:21:44 +0300 Subject: [PATCH] pre-commit and CI. --- .gitlab-ci.yml | 4 +++ .pre-commit-config.yaml | 56 +++++++++++++++++++++++++++++++++++++++++ README.md | 2 ++ 3 files changed, 62 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 .pre-commit-config.yaml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..f92da7b --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,4 @@ +--- +include: + - project: shore/ci-templates + file: templates/pre-commit.yml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..26e5e87 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,56 @@ +--- +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks.git + rev: v3.4.0 + hooks: + - id: check-added-large-files + - id: check-executables-have-shebangs + - id: check-merge-conflict + - id: check-symlinks + - id: trailing-whitespace + + - repo: https://github.com/Yelp/detect-secrets + rev: v1.1.0 + hooks: + - id: detect-secrets + + - repo: https://github.com/adrienverge/yamllint + rev: v1.26.1 + hooks: + - id: yamllint + + - repo: https://github.com/amperser/proselint/ + rev: 0.10.2 + hooks: + - id: proselint + types: [plain-text] + exclude: LICENSE + + - repo: https://github.com/executablebooks/mdformat.git + rev: 0.7.4 + hooks: + - id: mdformat + + - repo: https://git.shore.co.il/nimrod/shell-pre-commit.git + rev: v0.6.0 + hooks: + - id: shell-lint + + - repo: https://github.com/shellcheck-py/shellcheck-py.git + rev: v0.7.2.1 + hooks: + - id: shellcheck + + - repo: https://git.shore.co.il/nimrod/docker-pre-commit.git/ + rev: v0.3.0 + hooks: + - id: hadolint + - id: docker-compose + + - repo: https://gitlab.com/devopshq/gitlab-ci-linter + rev: v1.0.3 + hooks: + - id: gitlab-ci-linter + args: + - "--server" + - https://git.shore.co.il diff --git a/README.md b/README.md index 5a40ba5..fcdc14c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # es-docker +[](https://git.shore.co.il/shore/es-docker/-/commits/master) + Dockerized Elasticsearch setup. ## License -- GitLab