Skip to content

Commit defeb51

Browse files
authored
Dep updates (#35)
* Dep updates * black * mypy
1 parent 74174af commit defeb51

File tree

8 files changed

+276
-459
lines changed

8 files changed

+276
-459
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
name: tests
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313
- uses: actions/setup-python@v4
1414
with:
1515
python-version: '3.10'
@@ -22,7 +22,7 @@ jobs:
2222
name: mypy
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@v4
2626
- uses: actions/setup-python@v4
2727
with:
2828
python-version: '3.10'
@@ -34,7 +34,7 @@ jobs:
3434
name: black
3535
runs-on: ubuntu-latest
3636
steps:
37-
- uses: actions/checkout@v3
37+
- uses: actions/checkout@v4
3838
- uses: actions/setup-python@v4
3939
with:
4040
python-version: '3.10'

.vscode/settings.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
{
2-
"python.linting.mypyEnabled": true,
3-
"python.linting.enabled": true,
4-
"python.formatting.provider": "black",
52
"editor.formatOnSave": true
63
}

deployment/frogress/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM python:3.11-slim
22

33
RUN apt-get update && apt-get install -y curl netcat
44

5-
ARG POETRY_VERSION=1.2.2
5+
ARG POETRY_VERSION=1.7.1
66
ENV POETRY_VERSION=${POETRY_VERSION}
77
RUN curl -sSL https://install.python-poetry.org | \
88
POETRY_VERSION=${POETRY_VERSION} POETRY_HOME=/etc/poetry python -

frog_api/cache.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Optional
1+
from typing import Any, Optional
22
from django.core.cache import cache
33
from rest_framework.utils.serializer_helpers import ReturnDict
44

@@ -11,15 +11,15 @@ def _entries_cache_key(project_slug: str, version_slug: str, category_slug: str)
1111

1212
def get_entries_cache(
1313
project_slug: str, version_slug: str, category_slug: str
14-
) -> Optional[ReturnDict]:
14+
) -> Optional[ReturnDict[str, Any]]:
1515
"""
1616
Fetches cached entries data.
1717
"""
1818
return cache.get(_entries_cache_key(project_slug, version_slug, category_slug))
1919

2020

2121
def set_entries_cache(
22-
project_slug: str, version_slug: str, category_slug: str, data: ReturnDict
22+
project_slug: str, version_slug: str, category_slug: str, data: ReturnDict[str, Any]
2323
) -> None:
2424
"""
2525
Updates cached entries data.
@@ -32,7 +32,7 @@ def set_entries_cache(
3232

3333

3434
def invalidate_entries_cache(
35-
project_slug: str, version_slug: str, data: ReturnDict
35+
project_slug: str, version_slug: str, data: ReturnDict[str, Any]
3636
) -> None:
3737
"""
3838
Invalidates all affected entries caches.

frog_api/migrations/0010_alter_entry_category_alter_project_discord_and_more.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
class Migration(migrations.Migration):
8-
98
dependencies = [
109
(
1110
"frog_api",

frog_api/migrations/0011_entry_description.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class Migration(migrations.Migration):
7-
87
dependencies = [
98
("frog_api", "0010_alter_entry_category_alter_project_discord_and_more"),
109
]

poetry.lock

Lines changed: 256 additions & 435 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
[tool.poetry]
22
name = "frogress"
3-
version = "0.3.0"
3+
version = "0.4.0"
44
description = "Progress API for decompilation projects"
55
authors = ["Ethan Roseman <ethteck@gmail.com>"]
66
license = "MIT"
77

88
[tool.poetry.dependencies]
9-
python = "^3.8"
10-
Django = "^4.1"
11-
djangorestframework = "^3.13.1"
12-
django-nested-admin = "^3.4.0"
9+
python = "^3.10"
10+
Django = "^5.0"
11+
djangorestframework = "^3.14.0"
12+
django-nested-admin = "^4.0.2"
1313
django-environ = "^0.9.0"
14+
setuptools = "^69.0.2"
1415

1516
[tool.poetry.group.dev.dependencies]
16-
black = "^22.6.0"
17-
mypy = "^0.971"
18-
django-stubs = "^1.12.0"
19-
djangorestframework-stubs = "^1.7.0"
20-
django-stubs-ext = "^0.5.0"
21-
gunicorn = "^20.1.0"
17+
black = "^23.12.0"
18+
mypy = "^1.7.1"
19+
django-stubs = "^4.2.7"
20+
djangorestframework-stubs = "^3.14.5"
21+
django-stubs-ext = "^4.2.7"
22+
gunicorn = "^21.2.0"
2223

2324
[build-system]
2425
requires = ["poetry-core>=1.0.0"]

0 commit comments

Comments
 (0)