From 7a772dfd6472ff269cb6fb9546a034c0519fedf0 Mon Sep 17 00:00:00 2001 From: Alex Viscreanu Date: Wed, 8 Feb 2023 15:46:42 +0100 Subject: [PATCH] chore(precommit): update to v3.0.4 add py311 as main runtime and update other runtimes to the latest patch versions --- pre-commit/Dockerfile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pre-commit/Dockerfile b/pre-commit/Dockerfile index 5f3e459b..0baa9fcf 100644 --- a/pre-commit/Dockerfile +++ b/pre-commit/Dockerfile @@ -1,17 +1,18 @@ -FROM python:3.10-slim +FROM python:3.11-slim ENV PATH="$PATH:/root/.pyenv/bin:/root/.pyenv/shims" -ENV version=2.17.0 +ENV version=3.0.4 RUN apt update && \ apt install -y git golang bash curl build-essential libffi-dev libssl-dev libbz2-dev libncursesw5-dev libgdbm-dev liblzma-dev libsqlite3-dev tk-dev uuid-dev libreadline-dev nodejs npm python3-distutils zlib1g-dev && \ curl --location https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash && \ pyenv update && \ - pyenv install 3.7.12 && \ - pyenv install 3.8.12 && \ - pyenv install 3.9.10 && \ - pyenv install 3.10.2 && \ - pyenv global 3.10.2 3.9.10 3.8.12 3.7.12 && \ + pyenv install 3.7.16 && \ + pyenv install 3.8.16 && \ + pyenv install 3.9.16 && \ + pyenv install 3.10.10 && \ + pyenv install 3.11.2 && \ + pyenv global 3.11.2 3.10.10 3.9.16 3.8.16 3.7.16 && \ pyenv rehash && \ npm config set unsafe-perm true && \ pip install pre-commit==$version && \