Skip to content
This repository was archived by the owner on Oct 1, 2019. It is now read-only.
This repository was archived by the owner on Oct 1, 2019. It is now read-only.

Unnatural formatting of dict/list dict values #74

Open
@jleclanche

Description

@jleclanche

Input:

TEMPLATES = [{
	"BACKEND": "django.template.backends.django.DjangoTemplates",
	"DIRS": [
		"/some/path/to/some/example/directory",
	],
	"APP_DIRS": True,
	"OPTIONS": {
		"context_processors": [
			"django.template.context_processors.debug",
			"django.template.context_processors.request",
			"django.contrib.auth.context_processors.auth",
			"django.contrib.messages.context_processors.messages",
		],
	},
}]

Output:

TEMPLATES = [
	{
		"BACKEND": "django.template.backends.django.DjangoTemplates",
		"DIRS": ["/some/path/to/some/example/directory"],
		"APP_DIRS": True,
		"OPTIONS":
			{
				"context_processors":
					[
						"django.template.context_processors.debug",
						"django.template.context_processors.request",
						"django.contrib.auth.context_processors.auth",
						"django.contrib.messages.context_processors.messages",
					],
			},
	},
]

I don't know anyone who formats dict values like this and it feels very unnatural.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions