add new pydantic_settings based loader for ConfigSets
Some checks failed
Build Debian package / build (push) Has been cancelled
Build Homebrew package / build (push) Has been cancelled
Build GitHub Pages website / build (push) Has been cancelled
Run linters / lint (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Build Docker image / buildx (push) Has been cancelled
Build Pip package / build (push) Has been cancelled
Run tests / python_tests (ubuntu-22.04, 3.11) (push) Has been cancelled
Run tests / docker_tests (push) Has been cancelled
Build GitHub Pages website / deploy (push) Has been cancelled

This commit is contained in:
Nick Sweeting 2024-09-22 19:30:24 -07:00
parent c8ff8f2b86
commit b6cfeb8d40
No known key found for this signature in database
8 changed files with 201 additions and 21 deletions

View file

@ -2,7 +2,7 @@ import os
import sys
import inspect
from pathlib import Path
from typing import List, Dict, Optional
from typing import List, Dict, Optional, ClassVar
from pydantic import InstanceOf, Field
import django
@ -23,7 +23,7 @@ from plugantic.base_hook import BaseHook
class PipDependencyConfigs(BaseConfigSet):
section: ConfigSectionName = 'DEPENDENCY_CONFIG'
section: ClassVar[ConfigSectionName] = "DEPENDENCY_CONFIG"
USE_PIP: bool = True
PIP_BINARY: str = Field(default='pip')