Skip to content
Myr

Merge branch '3.1.x'

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parents 7b48764, 8d0ea74 · Browse files · 11 files+21 added−26 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

11 files+21 added−26 removed

  • other:+21 added−26 removed

11 files+21 added−26 removed

modified:.github/workflows/tests.yaml+1 added-1 removed
modified:requirements/dev.txt+6 added-6 removed
22 unmodified lines
23colorama==0.4.624 # via tox25distlib==0.3.626 # via virtualenv27filelock==3.12.027filelock==3.12.228 # via29 # tox30 # virtualenv31identify==2.5.24
3 unmodified lines
35pip-compile-multi==2.6.336 # via -r requirements/dev.in37pip-tools==6.13.038 # via pip-compile-multi39platformdirs==3.5.139platformdirs==3.8.040 # via41 # tox42 # virtualenv43pre-commit==3.3.243pre-commit==3.3.344 # via -r requirements/dev.in45pyproject-api==1.5.145pyproject-api==1.5.246 # via tox47pyproject-hooks==1.0.048 # via build49pyyaml==6.050 # via pre-commit51toposort==1.1052 # via pip-compile-multi53tox==4.5.253tox==4.6.354 # via -r requirements/dev.in55virtualenv==20.23.055virtualenv==20.23.156 # via57 # pre-commit58 # tox59wheel==0.40.0
5 unmodified lines
modified:requirements/docs.txt+3 added-3 removed
19 unmodified lines
20imagesize==1.4.121 # via sphinx22jinja2==3.1.223 # via sphinx24markupsafe==2.1.224markupsafe==2.1.325 # via jinja226packaging==23.127 # via28 # pallets-sphinx-themes29 # sphinx30pallets-sphinx-themes==2.1.030pallets-sphinx-themes==2.1.131 # via -r requirements/docs.in32pygments==2.15.133 # via sphinx34requests==2.31.0
21 unmodified lines
56sphinxcontrib-qthelp==1.0.357 # via sphinx58sphinxcontrib-serializinghtml==1.1.559 # via sphinx60urllib3==2.0.260urllib3==2.0.361 # via requests
modified:requirements/tests.txt+2 added-2 removed
9 unmodified lines
10iniconfig==2.0.011 # via pytest12packaging==23.113 # via pytest14pluggy==1.0.014pluggy==1.2.015 # via pytest16pytest==7.3.116pytest==7.4.017 # via -r requirements/tests.in18tomli==2.0.119 # via pytest
modified:requirements/typing.txt+2 added-2 removed
3 unmodified lines
4# To update, run:5#6# pip-compile-multi7#8mypy==1.3.08mypy==1.4.19 # via -r requirements/typing.in10mypy-extensions==1.0.011 # via mypy12tomli==2.0.113 # via mypy14typing-extensions==4.6.214typing-extensions==4.6.315 # via mypy
modified:src/jinja2/environment.py+1 added-1 removed
920 unmodified lines
921 "either extensions or filter_func can be passed, but not both"922 )923924 def filter_func(x: str) -> bool:925 return "." in x and x.rsplit(".", 1)[1] in extensions # type: ignore925 return "." in x and x.rsplit(".", 1)[1] in extensions926927 if filter_func is not None:928 names = [name for name in names if filter_func(name)]929
740 unmodified lines
modified:src/jinja2/runtime.py+1 added-3 removed
928 unmodified lines
929 logger = logging.getLogger(__name__)930 logger.addHandler(logging.StreamHandler(sys.stderr))931932 def _log_message(undef: Undefined) -> None:933 logger.warning( # type: ignore934 "Template variable warning: %s", undef._undefined_message935 )933 logger.warning("Template variable warning: %s", undef._undefined_message)934935 class LoggingUndefined(base): # type: ignore936 __slots__ = ()937
117 unmodified lines
modified:src/jinja2/utils.py+1 added-1 removed
257 unmodified lines
258 """259 if trim_url_limit is not None:260261 def trim_url(x: str) -> str:262 if len(x) > trim_url_limit: # type: ignore262 if len(x) > trim_url_limit:263 return f"{x[:trim_url_limit]}..."264265 return x266
491 unmodified lines
modified:.pre-commit-config.yaml+3 added-4 removed
1 unmodified line
2 autoupdate_branch: "3.1.x"3 autoupdate_schedule: monthly4repos:5 - repo: https://github.com/asottile/pyupgrade6 rev: v3.4.06 rev: v3.7.07 hooks:8 - id: pyupgrade9 args: ["--py37-plus"]10 - repo: https://github.com/asottile/reorder_python_imports11 rev: v3.9.010 - repo: https://github.com/asottile/reorder-python-imports11 rev: v3.10.012 hooks:13 - id: reorder-python-imports14 args: ["--application-directories", "src"]15 additional_dependencies: ["setuptools>60.9"]15 - repo: https://github.com/psf/black16 rev: 23.3.017 hooks:18 - id: black
15 unmodified lines
modified:pyproject.toml-2 removed
40 unmodified lines
41[tool.pytest.ini_options]42testpaths = ["tests"]43filterwarnings = [44 "error",45 # change in Python 3.12 beta causes warning from inside pytest46 "ignore:ast:DeprecationWarning",45]4647[tool.coverage.run]48branch = true
20 unmodified lines
modified:tox.ini+1 added-1 removed
1[tox]2envlist =3 py3{12,11,10,9,8,7}4 pypy394 pypy3105 style6 typing7 docs8skip_missing_interpreters = true
23 unmodified lines