From 7292b4d7a8cd826692ed68bc2f068b2d54e286e7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 5 May 2023 11:44:36 -0300 Subject: [PATCH] ci: [pre-commit.ci] pre-commit autoupdate (#3) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ci: initial ci config * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v3.2.0 → v4.4.0](https://github.com/pre-commit/pre-commit-hooks/compare/v3.2.0...v4.4.0) - [github.com/iamthefij/docker-pre-commit: master → v3.0.1](https://github.com/iamthefij/docker-pre-commit/compare/master...v3.0.1) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * ci: remove pretty-format-json hook * ci: fix devcontainer Dockerfile --------- Co-authored-by: Alexandre Teles Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .devcontainer/Dockerfile | 9 +++++---- .pre-commit-config.yaml | 5 ++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 1f830b1..7ef7d02 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,11 +1,11 @@ FROM mcr.microsoft.com/devcontainers/base:jammy -# FROM mcr.microsoft.com/devcontainers/base:jammy +# FROM mcr.microsoft.com/devcontainers/base:jammy ARG DEBIAN_FRONTEND=noninteractive ARG USER=vscode RUN DEBIAN_FRONTEND=noninteractive \ - && apt-get update \ + && apt-get update \ && apt-get install -y build-essential --no-install-recommends make \ ca-certificates \ git \ @@ -23,7 +23,8 @@ RUN DEBIAN_FRONTEND=noninteractive \ libxml2-dev \ libxmlsec1-dev \ libffi-dev \ - liblzma-dev + liblzma-dev \ + && rm -rf /var/lib/apt/lists/* # Python and poetry installation USER $USER @@ -42,4 +43,4 @@ RUN echo "done 0" \ && pyenv global ${PYTHON_VERSION} \ && echo "done 3" \ && curl -sSL https://install.python-poetry.org | python3 - \ - && poetry config virtualenvs.in-project true \ No newline at end of file + && poetry config virtualenvs.in-project true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 03faef2..b861ff2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.2.0 + rev: v4.4.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -11,7 +11,6 @@ repos: - id: double-quote-string-fixer - id: name-tests-test - id: requirements-txt-fixer - - id: pretty-format-json - id: check-toml - id: check-merge-conflict - id: double-quote-string-fixer @@ -25,7 +24,7 @@ repos: - id: black language_version: python3.9 - repo: https://github.com/iamthefij/docker-pre-commit - rev: master + rev: v3.0.1 hooks: - id: docker-compose-check - repo: https://github.com/pryorda/dockerfilelint-precommit-hooks