diff --git a/.woodpecker/workflow.yaml b/.woodpecker/workflow.yaml deleted file mode 100644 index d7ad11e..0000000 --- a/.woodpecker/workflow.yaml +++ /dev/null @@ -1,11 +0,0 @@ -when: - - event: push - branch: main - -steps: - - name: lint-and-test - image: debian - commands: - - pip install -r requirements/test.txt - - ruff check src - - python -m pytest diff --git a/src/dx/settings.py b/src/dx/settings.py index bbdd462..2ff9590 100644 --- a/src/dx/settings.py +++ b/src/dx/settings.py @@ -4,15 +4,6 @@ from configurations import Configuration BASE_DIR = Path(__file__).resolve().parent.parent -class EnableDebug(Configuration): - """ - Intended as a MIXIN - """ - - DEBUG = True - INSTALLED_APPS = Configuration.INSTALLED_APPS + ["django_debug_toolbar"] - - class Base(Configuration): DEBUG = False DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" @@ -31,7 +22,7 @@ class Base(Configuration): USE_TZ = True -class Dev(EnableDebug, Base): +class Dev(Base): # Dangerous: disable host header validation ALLOWED_HOSTS = ["*"] DATABASES = { @@ -40,6 +31,7 @@ class Dev(EnableDebug, Base): "NAME": "db.sqlite3", }, } + DEBUG = True INSTALLED_APPS = Base.INSTALLED_APPS + ["django_extensions"] diff --git a/src/manage.py b/src/manage.py index 46d6fb9..22d839f 100755 --- a/src/manage.py +++ b/src/manage.py @@ -3,7 +3,6 @@ import os import sys -from pathlib import Path def main(): @@ -12,19 +11,6 @@ def main(): from configurations.management import execute_from_command_line - try: - import pip_lock - except ModuleNotFoundError: - raise ModuleNotFoundError( - "Couldn't import pip-lock. Are you on the right virtualenv and up to date?" - ) - - requirements_path = str(Path(__file__).parent.parent / "requirements/base.txt") - pip_lock.check_requirements( - requirements_path, - post_text="\nRun the following:\n\npython -m pip install -r requirements/base.txt\n", - ) - execute_from_command_line(sys.argv)