From: David Lord Date: Thu, 13 Oct 2022 16:08:56 +0000 (-0700) Subject: update dev dependencies X-Git-Tag: 3.1.3~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0a10079f33f09162fea1b0af4ede9ea505f1cb17;p=thirdparty%2Fjinja.git update dev dependencies --- diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bbca538f..9c9ab1e9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,18 +3,18 @@ ci: autoupdate_schedule: monthly repos: - repo: https://github.com/asottile/pyupgrade - rev: v2.37.3 + rev: v3.1.0 hooks: - id: pyupgrade args: ["--py37-plus"] - repo: https://github.com/asottile/reorder_python_imports - rev: v3.8.2 + rev: v3.8.4 hooks: - id: reorder-python-imports args: ["--application-directories", "src"] additional_dependencies: ["setuptools>60.9"] - repo: https://github.com/psf/black - rev: 22.8.0 + rev: 22.10.0 hooks: - id: black - repo: https://github.com/PyCQA/flake8 diff --git a/docs/templates.rst b/docs/templates.rst index 341d0e12..86d01a6e 100644 --- a/docs/templates.rst +++ b/docs/templates.rst @@ -1608,8 +1608,7 @@ The following functions are available in the global scope by default: .. versionadded:: 2.1 - .. method:: current - :property: + .. property:: current Return the current item. Equivalent to the item that will be returned next time :meth:`next` is called. diff --git a/requirements/dev.txt b/requirements/dev.txt index 470cc78f..96a37927 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -16,41 +16,37 @@ click==8.1.3 # via # pip-compile-multi # pip-tools -distlib==0.3.4 +distlib==0.3.6 # via virtualenv -filelock==3.7.1 +filelock==3.8.0 # via # tox # virtualenv -identify==2.5.1 +identify==2.5.6 # via pre-commit nodeenv==1.7.0 # via pre-commit -pep517==0.12.0 +pep517==0.13.0 # via build -pip-compile-multi==2.4.5 +pip-compile-multi==2.4.6 # via -r requirements/dev.in -pip-tools==6.8.0 +pip-tools==6.9.0 # via pip-compile-multi platformdirs==2.5.2 # via virtualenv -pre-commit==2.19.0 +pre-commit==2.20.0 # via -r requirements/dev.in pyyaml==6.0 # via pre-commit six==1.16.0 - # via - # tox - # virtualenv + # via tox toml==0.10.2 - # via - # pre-commit - # tox + # via pre-commit toposort==1.7 # via pip-compile-multi -tox==3.25.1 +tox==3.26.0 # via -r requirements/dev.in -virtualenv==20.15.1 +virtualenv==20.16.5 # via # pre-commit # tox diff --git a/requirements/docs.txt b/requirements/docs.txt index 9f1f1b30..fba4c8c6 100644 --- a/requirements/docs.txt +++ b/requirements/docs.txt @@ -9,13 +9,13 @@ alabaster==0.7.12 # via sphinx babel==2.10.3 # via sphinx -certifi==2022.6.15 +certifi==2022.9.24 # via requests -charset-normalizer==2.1.0 +charset-normalizer==2.1.1 # via requests -docutils==0.18.1 +docutils==0.19 # via sphinx -idna==3.3 +idna==3.4 # via requests imagesize==1.4.1 # via sphinx @@ -29,17 +29,17 @@ packaging==21.3 # sphinx pallets-sphinx-themes==2.0.2 # via -r requirements/docs.in -pygments==2.12.0 +pygments==2.13.0 # via sphinx pyparsing==3.0.9 # via packaging -pytz==2022.1 +pytz==2022.4 # via babel requests==2.28.1 # via sphinx snowballstemmer==2.2.0 # via sphinx -sphinx==5.0.2 +sphinx==5.2.3 # via # -r requirements/docs.in # pallets-sphinx-themes @@ -61,5 +61,5 @@ sphinxcontrib-qthelp==1.0.3 # via sphinx sphinxcontrib-serializinghtml==1.1.5 # via sphinx -urllib3==1.26.9 +urllib3==1.26.12 # via requests diff --git a/requirements/tests.txt b/requirements/tests.txt index 753d04ab..1b1aba38 100644 --- a/requirements/tests.txt +++ b/requirements/tests.txt @@ -5,7 +5,7 @@ # # pip-compile-multi # -attrs==21.4.0 +attrs==22.1.0 # via pytest iniconfig==1.1.1 # via pytest @@ -17,7 +17,7 @@ py==1.11.0 # via pytest pyparsing==3.0.9 # via packaging -pytest==7.1.2 +pytest==7.1.3 # via -r requirements/tests.in tomli==2.0.1 # via pytest diff --git a/requirements/typing.txt b/requirements/typing.txt index dc9f0508..ee7e3764 100644 --- a/requirements/typing.txt +++ b/requirements/typing.txt @@ -5,11 +5,11 @@ # # pip-compile-multi # -mypy==0.961 +mypy==0.982 # via -r requirements/typing.in mypy-extensions==0.4.3 # via mypy tomli==2.0.1 # via mypy -typing-extensions==4.3.0 +typing-extensions==4.4.0 # via mypy diff --git a/src/jinja2/environment.py b/src/jinja2/environment.py index ea04e8b4..88b26662 100644 --- a/src/jinja2/environment.py +++ b/src/jinja2/environment.py @@ -1253,7 +1253,7 @@ class Template: t.blocks = namespace["blocks"] # render function and module - t.root_render_func = namespace["root"] # type: ignore + t.root_render_func = namespace["root"] t._module = None # debug and loader helpers @@ -1349,7 +1349,7 @@ class Template: ctx = self.new_context(dict(*args, **kwargs)) try: - yield from self.root_render_func(ctx) # type: ignore + yield from self.root_render_func(ctx) except Exception: yield self.environment.handle_exception() @@ -1532,7 +1532,7 @@ class TemplateModule: " API you are using." ) - body_stream = list(template.root_render_func(context)) # type: ignore + body_stream = list(template.root_render_func(context)) self._body_stream = body_stream self.__dict__.update(context.get_exported()) @@ -1564,7 +1564,7 @@ class TemplateExpression: def __call__(self, *args: t.Any, **kwargs: t.Any) -> t.Optional[t.Any]: context = self._template.new_context(dict(*args, **kwargs)) - consume(self._template.root_render_func(context)) # type: ignore + consume(self._template.root_render_func(context)) rv = context.vars["result"] if self._undefined_to_none and isinstance(rv, Undefined): rv = None