Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

Commit 61e7568

Browse files
[pre-commit.ci] pre-commit suggestions + other fixes/bumps (#18)
* [pre-commit.ci] pre-commit suggestions updates: - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](pre-commit/pre-commit-hooks@v4.6.0...v5.0.0) - [github.com/executablebooks/mdformat: 0.7.17 → 0.7.22](hukkin/mdformat@0.7.17...0.7.22) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * update CI * docker update --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>
1 parent c50ee8f commit 61e7568

4 files changed

Lines changed: 24 additions & 22 deletions

File tree

.github/ISSUE_TEMPLATE/Question.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ assignees: ''
2727

2828
#### What's your environment?
2929

30-
- Version \[e.g. 0.2.1\]
30+
- Version [e.g. 0.2.1]

.github/workflows/docker-builds.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ env:
1616

1717
jobs:
1818
build-push:
19-
runs-on: ubuntu-20.04
19+
runs-on: ubuntu-latest
2020
strategy:
2121
matrix:
22-
python-version: ["3.8", "3.9", "3.10", "3.12"]
22+
python-version: ["3.12"]
2323
steps:
2424
- name: Checkout
2525
uses: actions/checkout@v4

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ci:
99

1010
repos:
1111
- repo: https://github.com/pre-commit/pre-commit-hooks
12-
rev: v4.6.0
12+
rev: v5.0.0
1313
hooks:
1414
- id: end-of-file-fixer
1515
- id: trailing-whitespace
@@ -21,7 +21,7 @@ repos:
2121
- id: detect-private-key
2222

2323
- repo: https://github.com/executablebooks/mdformat
24-
rev: 0.7.17
24+
rev: 0.7.22
2525
hooks:
2626
- id: mdformat
2727
additional_dependencies:

Dockerfile

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,41 @@
11
# https://www.learnopencv.com/install-opencv3-on-ubuntu/
22

3-
FROM ubuntu:20.04
3+
FROM ubuntu:22.04
44

5-
ARG PYTHON_VERSION=3.8
5+
ARG PYTHON_VERSION=3.9
66

7-
LABEL maintainer="jiri.borovec@fel.cvut.cz"
7+
LABEL maintainer="jborovec+github@gmail.com"
88

99
SHELL ["/bin/bash", "-c"]
1010

1111
# for installing tzdata see: https://stackoverflow.com/a/58264927/4521646
1212
ENV DEBIAN_FRONTEND=noninteractive
1313

14-
RUN apt-get update -qq && \
15-
apt-get install -y --no-install-recommends software-properties-common && \
16-
add-apt-repository ppa:deadsnakes/ppa && \
17-
apt-get update --fix-missing && \
14+
RUN \
15+
apt-get update -qq --fix-missing && \
1816
apt-get install -y --no-install-recommends \
17+
software-properties-common \
18+
dirmngr \
19+
gnupg && \
20+
add-apt-repository ppa:deadsnakes/ppa && \
21+
apt-add-repository universe && \
22+
apt-get -y update -qq --fix-missing && \
23+
apt-get -y install --no-install-recommends \
1924
python${PYTHON_VERSION} \
20-
$( [ ${PYTHON_VERSION%%.*} -ge 3 ] && echo "python${PYTHON_VERSION}-distutils" ) \
2125
python${PYTHON_VERSION}-dev \
22-
wget \
26+
curl \
2327
&& \
2428

29+
# Set the default python and install PIP packages
30+
update-alternatives --install /usr/bin/python${PYTHON_VERSION%%.*} python${PYTHON_VERSION%%.*} /usr/bin/python${PYTHON_VERSION} 1 && \
31+
update-alternatives --install /usr/bin/python python /usr/bin/python${PYTHON_VERSION} 1 && \
32+
2533
# Install python dependencies
26-
wget https://bootstrap.pypa.io/get-pip.py --progress=bar:force:noscroll --no-check-certificate && \
27-
python${PYTHON_VERSION} get-pip.py && \
28-
rm get-pip.py && \
34+
curl "https://bootstrap.pypa.io/get-pip.py" | python && \
2935

3036
# Cleaning
3137
apt-get autoremove -y && \
32-
apt-get clean && \
33-
34-
# Set the default python and install PIP packages
35-
update-alternatives --install /usr/bin/python${PYTHON_VERSION%%.*} python${PYTHON_VERSION%%.*} /usr/bin/python${PYTHON_VERSION} 1 && \
36-
update-alternatives --install /usr/bin/python python /usr/bin/python${PYTHON_VERSION} 1
38+
apt-get clean
3739

3840
RUN \
3941
# Show what we have

0 commit comments

Comments
 (0)