diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..1ec20dd --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,16 @@ +--- +fail_fast: false +repos: + - repo: https://github.com/digitalpulp/pre-commit-php + rev: 1.3.0 + hooks: + - id: php-cbf + verbose: true + stages: [manual] + types: [php] + - repo: https://github.com/digitalpulp/pre-commit-php + rev: 1.3.0 + hooks: + - id: php-cs + verbose: true + types: [php] diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..eb2e0b9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM petzi/pre-commit:1.15.2-7 +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + php-codesniffer \ + && rm -rf /var/lib/apt/lists/* +COPY .pre-commit-config.yaml /