diff options
author | Matthew Lemon <y@yulqen.org> | 2025-01-04 16:44:59 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2025-01-04 16:44:59 +0000 |
commit | 126a5fb1841aaf95b38cc8d7e5c79561023623f1 (patch) | |
tree | 88a2f015f37553752def9afbeeed899fb02387bd | |
parent | b43e1ef2c2721b7a334526903ea06e73d978f4b0 (diff) |
Adds isort as dev depenedencymassive-cleanup
-rw-r--r-- | alphabetlearning/resources/views.py | 26 | ||||
-rw-r--r-- | pyproject.toml | 17 | ||||
-rw-r--r-- | uv.lock | 15 |
3 files changed, 30 insertions, 28 deletions
diff --git a/alphabetlearning/resources/views.py b/alphabetlearning/resources/views.py index 8b0f8c5..508c187 100644 --- a/alphabetlearning/resources/views.py +++ b/alphabetlearning/resources/views.py @@ -9,26 +9,16 @@ from django.conf import settings from django.contrib import messages from django.contrib.auth.decorators import login_required from django.core.paginator import Paginator -from django.db import IntegrityError -from django.db import transaction -from django.shortcuts import get_object_or_404 -from django.shortcuts import redirect -from django.shortcuts import render +from django.db import IntegrityError, transaction +from django.shortcuts import get_object_or_404, redirect, render from . import services -from .forms import ResourceCreateForm -from .forms import ResourceUpdateMetadataForm -from .forms import ResourceUpdatePDFsForm -from .forms import ResourceUpdateThumbnailsForm -from .models import PDFPageSnapshot -from .models import PDFResource -from .models import Resource -from .models import ResourceCategory -from .models import ResourceSubcategory -from .s3 import get_presigned_obj_url -from .s3 import upload_files_to_s3 -from .s3 import upload_snapshotted_pages_to_s3 -from .s3 import upload_to_s3 +from .forms import (ResourceCreateForm, ResourceUpdateMetadataForm, + ResourceUpdatePDFsForm, ResourceUpdateThumbnailsForm) +from .models import (PDFPageSnapshot, PDFResource, Resource, ResourceCategory, + ResourceSubcategory) +from .s3 import (get_presigned_obj_url, upload_files_to_s3, + upload_snapshotted_pages_to_s3, upload_to_s3) logger = logging.getLogger(__name__) diff --git a/pyproject.toml b/pyproject.toml index 4bf01be..8ad37ef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,14 +50,15 @@ dependencies = [ ] [tool.uv] # https://docs.astral.sh/uv/concepts/dependencies/#development-dependencies dev-dependencies = [ - "factory-boy==3.3.0", # https://github.com/FactoryBoy/factory_boy - "django-coverage-plugin==3.1.0", # https://github.com/nedbat/django_coverage_plugin - "pytest-django==4.8.0", # https://github.com/pytest-dev/pytest-django - "ruff==0.6.4", # https://github.com/astral-sh/ruff - "coverage==7.5.1", # https://github.com/nedbat/coveragepy - "pytest==8.2.0", # https://github.com/pytest-dev/pytest - "pytest-sugar==1.0.0", # https://github.com/Frozenball/pytest-sugar - "pdbpp==0.10.3" + "factory-boy==3.3.0", # https://github.com/FactoryBoy/factory_boy + "django-coverage-plugin==3.1.0", # https://github.com/nedbat/django_coverage_plugin + "pytest-django==4.8.0", # https://github.com/pytest-dev/pytest-django + "ruff==0.6.4", # https://github.com/astral-sh/ruff + "coverage==7.5.1", # https://github.com/nedbat/coveragepy + "pytest==8.2.0", # https://github.com/pytest-dev/pytest + "pytest-sugar==1.0.0", # https://github.com/Frozenball/pytest-sugar + "pdbpp==0.10.3", + "isort>=5.13.2", ] # ==== pytest ==== @@ -39,6 +39,7 @@ dev = [ { name = "coverage" }, { name = "django-coverage-plugin" }, { name = "factory-boy" }, + { name = "isort" }, { name = "pdbpp" }, { name = "pytest" }, { name = "pytest-django" }, @@ -81,6 +82,7 @@ dev = [ { name = "coverage", specifier = "==7.5.1" }, { name = "django-coverage-plugin", specifier = "==3.1.0" }, { name = "factory-boy", specifier = "==3.3.0" }, + { name = "isort", specifier = ">=5.13.2" }, { name = "pdbpp", specifier = "==0.10.3" }, { name = "pytest", specifier = "==8.2.0" }, { name = "pytest-django", specifier = "==4.8.0" }, @@ -505,7 +507,7 @@ name = "fancycompleter" version = "0.9.1" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "pyreadline", marker = "platform_system == 'Windows'" }, + { name = "pyreadline", marker = "sys_platform == 'win32'" }, { name = "pyrepl" }, ] sdist = { url = "https://files.pythonhosted.org/packages/a9/95/649d135442d8ecf8af5c7e235550c628056423c96c4bc6787348bdae9248/fancycompleter-0.9.1.tar.gz", hash = "sha256:09e0feb8ae242abdfd7ef2ba55069a46f011814a80fe5476be48f51b00247272", size = 10866 } @@ -544,6 +546,15 @@ wheels = [ ] [[package]] +name = "isort" +version = "5.13.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/87/f9/c1eb8635a24e87ade2efce21e3ce8cd6b8630bb685ddc9cdaca1349b2eb5/isort-5.13.2.tar.gz", hash = "sha256:48fdfcb9face5d58a4f6dde2e72a1fb8dcaf8ab26f95ab49fab84c2ddefb0109", size = 175303 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d1/b3/8def84f539e7d2289a02f0524b944b15d7c75dab7628bedf1c4f0992029c/isort-5.13.2-py3-none-any.whl", hash = "sha256:8ca5e72a8d85860d5a3fa69b8745237f2939afe12dbf656afbcb47fe72d947a6", size = 92310 }, +] + +[[package]] name = "jmespath" version = "1.0.1" source = { registry = "https://pypi.org/simple" } @@ -846,7 +857,7 @@ name = "qrcode" version = "7.4.2" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "colorama", marker = "platform_system == 'Windows'" }, + { name = "colorama", marker = "sys_platform == 'win32'" }, { name = "pypng" }, { name = "typing-extensions" }, ] |