Skip to content
Myr

defaults.py

This file

Path

src/jinja2/defaults.py

48 lines · 1.2 KiB · Python

Last changed by

drop end of life python versions (#2096)David Lordbefore adoption49c48a0

History of this file

Take it

The walk stopped after 200 commits: lines older than c580dd0 point at it.

Merge pull request #1361 from pallets/consistencyDavid Lordbefore adoptionab9cd8c

lines 1–2why, one step back
1import typing as t
2

update building docs instructions in contributing guide (#1235)sixtyfathomsbefore adoptionc580dd0

lines 3–9why, one step back
3from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
4from .tests import TESTS as DEFAULT_TESTS # noqa: F4015from .utils import Cycler6from .utils import generate_lorem_ipsum7from .utils import Joiner8from .utils import Namespace9

Merge pull request #1412 from pallets/typingDavid Lordbefore adoption1a3342b

lines 10–12why, one step back
10if t.TYPE_CHECKING:
11 import typing_extensions as te12

update building docs instructions in contributing guide (#1235)sixtyfathomsbefore adoptionc580dd0

lines 13–19why, one step back
13# defaults for the parser / lexer
14BLOCK_START_STRING = "{%"15BLOCK_END_STRING = "%}"16VARIABLE_START_STRING = "{{"17VARIABLE_END_STRING = "}}"18COMMENT_START_STRING = "{#"19COMMENT_END_STRING = "#}"

drop end of life python versions (#2096)David Lordbefore adoption49c48a0

lines 20–21why, one step back
20LINE_STATEMENT_PREFIX: str | None = None
21LINE_COMMENT_PREFIX: str | None = None

update building docs instructions in contributing guide (#1235)sixtyfathomsbefore adoptionc580dd0

lines 22–23why, one step back
22TRIM_BLOCKS = False
23LSTRIP_BLOCKS = False

Merge pull request #1412 from pallets/typingDavid Lordbefore adoption1a3342b

line 24why, one step back
24NEWLINE_SEQUENCE: "te.Literal['\\n', '\\r\\n', '\\r']" = "\n"

update building docs instructions in contributing guide (#1235)sixtyfathomsbefore adoptionc580dd0

lines 25–38why, one step back
25KEEP_TRAILING_NEWLINE = False
2627# default filters, tests and namespace2829DEFAULT_NAMESPACE = {30 "range": range,31 "dict": dict,32 "lipsum": generate_lorem_ipsum,33 "cycler": Cycler,34 "joiner": Joiner,35 "namespace": Namespace,36}3738# default policies

Updated dependency management to uv (#2093)David Lordbefore adoption05f5d74

line 39why, one step back
39DEFAULT_POLICIES: dict[str, t.Any] = {

update building docs instructions in contributing guide (#1235)sixtyfathomsbefore adoptionc580dd0

lines 40–48why, one step back
40 "compiler.ascii_str": True,
41 "urlize.rel": "noopener",42 "urlize.target": None,43 "urlize.extra_schemes": None,44 "truncate.leeway": 5,45 "json.dumps_function": None,46 "json.dumps_kwargs": {"sort_keys": True},47 "ext.i18n.trimmed": False,48}