Skip to content

Commit

Permalink
fix(python-version): Updated python to 3.12 and dependencies
Browse files Browse the repository at this point in the history
fix(python-version): Updated python to 3.12 and dependencies
  • Loading branch information
twodrops committed Apr 24, 2024
2 parents c06cb1e + 213a5b9 commit 2fc0472
Show file tree
Hide file tree
Showing 6 changed files with 1,014 additions and 964 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
## =====================================================================================
##

ARG VARIANT=3.10
FROM mcr.microsoft.com/devcontainers/python:${VARIANT}
ARG VARIANT=3.12
FROM --platform=linux/amd64 mcr.microsoft.com/devcontainers/python:${VARIANT}

LABEL maintainer="Bosch Doxysphinx Team <https://github.com/boschglobal/doxysphinx/>"

Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dockerfile": "Dockerfile",
"context": "../",
"args": {
"VARIANT": "3.10",
"VARIANT": "3.12",
"WORKSPACE_DIR": "${containerWorkspaceFolder}"
}
},
Expand Down Expand Up @@ -63,6 +63,6 @@
// It's necessary to do this here because in Dockerfile we do not have the config files (pyproject.toml +
// .pre-commit-config.yaml) available.
// "postCreateCommand": "pre-commit install --install-hooks && pre-commit autoupdate",
"onCreateCommand": "poetry install --with sphinx && pre-commit install --install-hooks && pre-commit autoupdate",
// "onCreateCommand": "poetry install --with sphinx && pre-commit install --install-hooks && pre-commit autoupdate",
"remoteUser": "vscode"
}
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ repos:
args: ["--maxkb=4096"]

- repo: https://github.com/psf/black
rev: 23.9.1
rev: 24.3.0
hooks:
- id: black
types: [python]

- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]

- repo: https://github.com/pycqa/flake8
rev: 6.1.0
rev: 7.0.0
hooks:
- id: flake8
additional_dependencies: [
Expand All @@ -62,7 +62,7 @@ repos:
types: [python]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.0
rev: v1.9.0
hooks:
- id: mypy
args: [ "--show-error-codes" ]
Expand All @@ -73,7 +73,7 @@ repos:
types: [python]

- repo: https://github.com/PyCQA/bandit
rev: 1.7.5
rev: 1.7.8
hooks:
- id: bandit
types: [python]
Expand All @@ -91,14 +91,14 @@ repos:
# - id: pip-audit

- repo: https://github.com/commitizen-tools/commitizen
rev: 3.10.0
rev: v3.21.3
hooks:
- id: commitizen
- id: commitizen-branch
stages: [push]

- repo: https://github.com/python-poetry/poetry
rev: 1.6.0
rev: 1.8.0
hooks:
- id: poetry-check
- id: poetry-lock
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

FROM python:3-slim

ARG VARIANT=3.10
ARG VARIANT=3.12
FROM mcr.microsoft.com/vscode/devcontainers/python:${VARIANT}

LABEL maintainer="Bosch Docs as Doxysphinx <https://github.com/boschglobal/doxysphinx>"
LABEL maintainer="Bosch Docs as Code Doxysphinx <https://github.com/boschglobal/doxysphinx>"

RUN useradd -ms /bin/bash doxysphinx_user

Expand Down
Loading

0 comments on commit 2fc0472

Please sign in to comment.