Resolve linter contradictions: consolidate config, fix isort first-party, pylint 10/10
Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/1e4a1f06-55b9-4040-853e-6aaf9ee574c8 Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
@@ -74,9 +74,9 @@ class Settings(BaseSettings):
|
||||
return v
|
||||
|
||||
@validator("BACKEND_CORS_ORIGINS", pre=True)
|
||||
def assemble_cors_origins(
|
||||
def assemble_cors_origins( # pylint: disable=no-self-argument
|
||||
cls, v: Union[str, List[str]]
|
||||
) -> List[str]: # pylint: disable=no-self-argument
|
||||
) -> List[str]:
|
||||
if isinstance(v, str) and not v.startswith("["):
|
||||
return [i.strip() for i in v.split(",")]
|
||||
if isinstance(v, (list, str)):
|
||||
|
||||
Reference in New Issue
Block a user