From f4242212265bc4a8a8ad9b8fadf659ce45793e4e Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Tue, 20 Feb 2024 13:54:16 -0500 Subject: [PATCH] chore: quality fixes --- aspects/__init__.py | 3 ++- aspects/apps.py | 6 ++---- aspects/extensions/filters.py | 1 + aspects/settings/common.py | 1 + aspects/settings/test.py | 1 - 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/aspects/__init__.py b/aspects/__init__.py index 06ceb10..ca6a6cb 100644 --- a/aspects/__init__.py +++ b/aspects/__init__.py @@ -1,9 +1,10 @@ """ One-line description for README and other doc files. """ + import os from pathlib import Path -__version__ = '0.1.0' +__version__ = "0.1.0" ROOT_DIRECTORY = Path(os.path.dirname(os.path.abspath(__file__))) diff --git a/aspects/apps.py b/aspects/apps.py index ac21f85..13a72fa 100644 --- a/aspects/apps.py +++ b/aspects/apps.py @@ -10,7 +10,7 @@ class AspectsConfig(AppConfig): Configuration for the aspects Django application. """ - name = 'aspects' + name = "aspects" plugin_app = { "settings_config": { @@ -29,6 +29,4 @@ class AspectsConfig(AppConfig): def ready(self): """Load modules of Aspects.""" - from aspects.extensions import ( # pylint: disable=unused-import, import-outside-toplevel - filters, - ) + from aspects.extensions import filters # pylint: disable=unused-import, import-outside-toplevel diff --git a/aspects/extensions/filters.py b/aspects/extensions/filters.py index d0a422c..b1583a9 100644 --- a/aspects/extensions/filters.py +++ b/aspects/extensions/filters.py @@ -1,6 +1,7 @@ """ Open edX Filters needed for Aspects integration. """ + import pkg_resources from django.conf import settings from django.template import Context, Template diff --git a/aspects/settings/common.py b/aspects/settings/common.py index 20b0ea1..91bd07d 100644 --- a/aspects/settings/common.py +++ b/aspects/settings/common.py @@ -5,6 +5,7 @@ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.22/ref/settings/ """ + from aspects import ROOT_DIRECTORY # Quick-start development settings - unsuitable for production diff --git a/aspects/settings/test.py b/aspects/settings/test.py index 87c9866..dd00b5d 100644 --- a/aspects/settings/test.py +++ b/aspects/settings/test.py @@ -6,7 +6,6 @@ https://docs.djangoproject.com/en/2.22/ref/settings/ """ - # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/2.22/howto/deployment/checklist/