From 4ad6d024e2123a1a787a355a655c44b0899ba35e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Mineo?= Date: Wed, 10 Jan 2024 17:27:07 +0100 Subject: [PATCH] TG-1016 Update Makefile and pre-commit dependencies (#257) --- .pre-commit-config.yaml | 4 ++-- Makefile | 2 +- {{cookiecutter.project_dirname}}/.pre-commit-config.yaml | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bf1116af..c8b60df4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,11 +32,11 @@ repos: - id: pyupgrade args: [--py312-plus] - repo: https://github.com/psf/black - rev: "23.1.0" + rev: "23.12.1" hooks: - id: black - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v4.0.0-alpha.8" + rev: "v3.1.0" hooks: - id: prettier files: ^(?!.*\b(tfvars|tf|yaml|yml)\b) diff --git a/Makefile b/Makefile index b8a75cbe..44ce79a3 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,7 @@ pip: pip_update ## Compile requirements .PHONY: pip_update pip_update: ## Update requirements and dependencies - python3 -m pip install -q -U pip~=23.3.0 pip-tools~=7.3.0 setuptools~=69.0.0 wheel~=0.42.0 + python3 -m pip install --quiet --upgrade pip~=23.3.0 pip-tools~=7.3.0 setuptools~=69.0.0 wheel~=0.42.0 .PHONY: precommit precommit: ## Fix code formatting, linting and sorting imports diff --git a/{{cookiecutter.project_dirname}}/.pre-commit-config.yaml b/{{cookiecutter.project_dirname}}/.pre-commit-config.yaml index 4543e9bd..23407a20 100644 --- a/{{cookiecutter.project_dirname}}/.pre-commit-config.yaml +++ b/{{cookiecutter.project_dirname}}/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: "v4.4.0" + rev: "v4.5.0" hooks: - id: check-added-large-files args: ["--maxkb=1024"] @@ -16,10 +16,10 @@ repos: - id: mixed-line-ending - id: trailing-whitespace - repo: https://github.com/antonbabenko/pre-commit-terraform - rev: "v1.77.0" + rev: "v1.86.0" hooks: - id: terraform_fmt - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v3.0.0-alpha.4" + rev: "v3.1.0" hooks: - id: prettier