Skip to content

Commit

Permalink
chore: bump Django version and dev+ci dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
eriktm committed Jan 26, 2025
1 parent c6879d8 commit aff9c42
Show file tree
Hide file tree
Showing 6 changed files with 769 additions and 808 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@ on:

env:
PYTHON_VERSION: "3.11"
POETRY_VERSION: "1.7.1" # Remember to also update in pyproject.toml
POETRY_VERSION: "1.8.5" # Remember to also update in pyproject.toml
IMAGE_NAME: unicorn-backend

jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Pre-Commit
run: python -m pip install pre-commit && pre-commit install
- name: Load cached Pre-Commit Dependencies
id: cached-poetry-dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit/
key: pre-commit-4|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
Expand Down Expand Up @@ -69,11 +69,11 @@ jobs:

steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Run database initialization script
run: docker exec -i test_db /bin/bash < scripts/dbinit/initialize-database.sh
- name: Set up python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install Poetry
Expand All @@ -85,7 +85,7 @@ jobs:
installer-parallel: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: .venv
key: v1-venv-${{ runner.os }}-${{ env.PYTHON_VERSION }}-${{ hashFiles('**/poetry.lock') }}
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
default_language_version:
python: "3.10"
python: "3.11"
repos:
- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.12.0
rev: 24.10.0
hooks:
- id: black
args: [--config=./pyproject.toml]
exclude: ^.*\b(migrations)\b.*$
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 7.1.1
hooks:
- id: flake8
additional_dependencies:
[
"flake8-secure-coding-standard",
]
- repo: https://github.com/rtts/djhtml
rev: 'v1.5.2'
rev: 3.0.7
hooks:
- id: djhtml
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG WORKDIR="/app"
FROM python:3.11-alpine as base

# Remember to also update in pyproject.toml
ENV POETRY_VERSION=1.7.1
ENV POETRY_VERSION=1.8.5

ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONFAULTHANDLER 1
Expand Down
Loading

0 comments on commit aff9c42

Please sign in to comment.