From 13a180736a772991eb9d385f86b5d81b593ea4b6 Mon Sep 17 00:00:00 2001 From: Jeremy Frasier Date: Sat, 30 Mar 2019 11:45:50 -0400 Subject: [PATCH 1/2] Add pre-commit hook for docker-compose linting --- .pre-commit-config.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d339352..2247035 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -61,6 +61,10 @@ repos: - id: terraform_fmt - id: terraform_validate_no_variables - id: terraform_docs + - repo: https://github.com/IamTheFij/docker-pre-commit + rev: v1.0.0 + hooks: + - id: docker-compose-check - repo: https://github.com/prettier/prettier rev: 1.16.2 hooks: From 74e145257cea8392dbc7a2d44153a67a01fc20f5 Mon Sep 17 00:00:00 2001 From: Jeremy Frasier Date: Sat, 30 Mar 2019 12:47:36 -0400 Subject: [PATCH 2/2] Remove black and pyupgrade from requirements-test They are not needed there. Also run pre-commit autoupdate to pick up the latest version of hooks. --- .pre-commit-config.yaml | 4 ++-- requirements-test.txt | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2247035..e72a49f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,7 +23,7 @@ repos: - id: requirements-txt-fixer - id: trailing-whitespace - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.14.0 + rev: v0.14.1 hooks: - id: markdownlint # The LICENSE.md must match the license text exactly for @@ -47,7 +47,7 @@ repos: hooks: - id: pyupgrade - repo: https://github.com/ambv/black - rev: 18.9b0 + rev: 19.3b0 hooks: - id: black - repo: https://github.com/ansible/ansible-lint.git diff --git a/requirements-test.txt b/requirements-test.txt index 35170aa..416634f 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,3 +1 @@ -black pre-commit -pyupgrade