Skip to content

Commit

Permalink
Updated Python to 3.12 and Node to 20
Browse files Browse the repository at this point in the history
  • Loading branch information
danyi1212 committed Aug 17, 2024
1 parent 4df1b32 commit 42962b2
Show file tree
Hide file tree
Showing 18 changed files with 4,124 additions and 3,161 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'
cache: 'poetry'
- name: Install dependencies
run: poetry install
Expand Down
2 changes: 2 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/celery-insights.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/git_toolbox_blame.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .idea/git_toolbox_prj.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .idea/runConfigurations/pytest_in_server.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .idea/runConfigurations/run_server.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exclude: ^frontend/src/services/server
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -19,15 +19,15 @@ repos:
args: [ --fix=lf ]

- repo: https://github.com/python-poetry/poetry
rev: 1.7.0
rev: 1.8.0
hooks:
- id: poetry-check
files: pyproject\.toml$
types: [ file ]
args: [ --lock ]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
rev: v0.6.1
hooks:
- id: ruff
files: \.py$
Expand All @@ -37,7 +37,7 @@ repos:
types: [ file ]

- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.54.0
rev: v9.9.0
hooks:
- id: eslint
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
Expand Down
14 changes: 11 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
FROM python:3.11-alpine AS requirements-stage
FROM python:3.12-alpine AS python-base

ENV PYTHONFAULTHANDLER=1 \
PYTHONHASHSEED=random \
PYTHONUNBUFFERED=1

RUN pip install --upgrade pip

FROM python-base AS requirements-stage

WORKDIR /tmp

Expand All @@ -16,7 +24,7 @@ RUN if [ $VARIANT = "all" ]; then \
poetry export -f requirements.txt --output requirements.txt; \
fi

FROM node:18-alpine AS front-build
FROM node:22-alpine AS front-build

WORKDIR /frontend

Expand All @@ -27,7 +35,7 @@ RUN npm ci
COPY /frontend/ .
RUN npm run build

FROM python:3.11-alpine
FROM python-base

WORKDIR /app

Expand Down
Loading

0 comments on commit 42962b2

Please sign in to comment.