Skip to content

Commit

Permalink
chore(pre-commit): update to 3.6.2 (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
standag authored Mar 7, 2024
1 parent b28439c commit 2205fb1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -360,12 +360,11 @@ For more information, see http://www.pgbouncer.org/usage.html.

## kiwicom/pre-commit

- Base image: `python:3.8-alpine`
- packages: `git npm bash build-base pre-commit`
- Base image: `python:3.12-slim`
- packages: `git npm nodejs bash build-base golang pre-commit`
- supported Python versions: 3.12, 3.11, 3.10, 3.9, 3.8, 3.7

We use this image to run our `pre-commit` hooks in CI
We also offer a `kiwicom/pre-commit:vX.X.X-full` where besides having the latest python version we also
support previous versions up to Python 3.7
We use this image to run our `pre-commit` hooks in CI.

## kiwicom/python-rancher-compose

Expand Down
10 changes: 5 additions & 5 deletions pre-commit/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM python:3.11-slim
FROM python:3.12-slim

ENV PATH="$PATH:/root/.pyenv/bin:/root/.pyenv/shims"
ENV version=3.6.0
ENV version=3.6.2

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 && \
Expand All @@ -11,9 +11,9 @@ RUN apt update && \
pyenv install 3.8.18 && \
pyenv install 3.9.18 && \
pyenv install 3.10.13 && \
pyenv install 3.11.7 && \
pyenv install 3.12.1 && \
pyenv global 3.12.1 3.11.7 3.10.13 3.9.18 3.8.18 3.7.17 && \
pyenv install 3.11.8 && \
pyenv install 3.12.2 && \
pyenv global 3.12.2 3.11.8 3.10.13 3.9.18 3.8.18 3.7.17 && \
pyenv rehash && \
pip install pre-commit==$version && \
rm -rf /var/cache/apk/* && \
Expand Down

0 comments on commit 2205fb1

Please sign in to comment.