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
Provenance
- Commit
c0e4f69- Tree
5237817- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent 1
7b48764- Parent 2
8d0ea74
11 files changed+21 added−26 removed
modified:.github/workflows/tests.yaml+1 added-1 removed
30 unmodified lines3132333435353637383917 unmodified lines30 unmodified lines - {name: '3.10', python: '3.10', os: ubuntu-latest, tox: py310} - {name: '3.9', python: '3.9', os: ubuntu-latest, tox: py39} - {name: '3.8', python: '3.8', os: ubuntu-latest, tox: py38} - {name: '3.7', python: '3.7', os: ubuntu-latest, tox: py37} - {name: 'PyPy', python: 'pypy-3.9', os: ubuntu-latest, tox: pypy39} - {name: 'PyPy', python: 'pypy-3.10', os: ubuntu-latest, tox: pypy310} - {name: Typing, python: '3.11', os: ubuntu-latest, tox: typing} steps: - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - uses: actions/setup-python@bd6b4b6205c4dbad673328db7b31b7fab9e241c017 unmodified linesmodified:requirements/dev.txt+6 added-6 removed
22 unmodified lines23 colorama==0.4.624 # via tox25 distlib==0.3.626 # via virtualenv27-filelock==3.12.027+filelock==3.12.228 # via29 # tox30 # virtualenv31 identify==2.5.243 unmodified lines35 pip-compile-multi==2.6.336 # via -r requirements/dev.in37 pip-tools==6.13.038 # via pip-compile-multi39-platformdirs==3.5.139+platformdirs==3.8.040 # via41 # tox42 # virtualenv43-pre-commit==3.3.243+pre-commit==3.3.344 # via -r requirements/dev.in45-pyproject-api==1.5.145+pyproject-api==1.5.246 # via tox47 pyproject-hooks==1.0.048 # via build49 pyyaml==6.050 # via pre-commit51 toposort==1.1052 # via pip-compile-multi53-tox==4.5.253+tox==4.6.354 # via -r requirements/dev.in55-virtualenv==20.23.055+virtualenv==20.23.156 # via57 # pre-commit58 # tox59 wheel==0.40.05 unmodified linesmodified:requirements/docs.txt+3 added-3 removed
19 unmodified lines20 imagesize==1.4.121 # via sphinx22 jinja2==3.1.223 # via sphinx24-markupsafe==2.1.224+markupsafe==2.1.325 # via jinja226 packaging==23.127 # via28 # pallets-sphinx-themes29 # sphinx30-pallets-sphinx-themes==2.1.030+pallets-sphinx-themes==2.1.131 # via -r requirements/docs.in32 pygments==2.15.133 # via sphinx34 requests==2.31.021 unmodified lines56 sphinxcontrib-qthelp==1.0.357 # via sphinx58 sphinxcontrib-serializinghtml==1.1.559 # via sphinx60-urllib3==2.0.260+urllib3==2.0.361 # via requestsmodified:requirements/tests.txt+2 added-2 removed
9 unmodified lines10 iniconfig==2.0.011 # via pytest12 packaging==23.113 # via pytest14-pluggy==1.0.014+pluggy==1.2.015 # via pytest16-pytest==7.3.116+pytest==7.4.017 # via -r requirements/tests.in18 tomli==2.0.119 # via pytestmodified:requirements/typing.txt+2 added-2 removed
3 unmodified lines4 # To update, run:5 #6 # pip-compile-multi7 #8-mypy==1.3.08+mypy==1.4.19 # via -r requirements/typing.in10 mypy-extensions==1.0.011 # via mypy12 tomli==2.0.113 # via mypy14-typing-extensions==4.6.214+typing-extensions==4.6.315 # via mypymodified:src/jinja2/environment.py+1 added-1 removed
920 unmodified lines921 "either extensions or filter_func can be passed, but not both"922 )923 924 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 extensions926 927 if filter_func is not None:928 names = [name for name in names if filter_func(name)]929 740 unmodified linesmodified:src/jinja2/runtime.py+1 added-3 removed
928 unmodified lines929 logger = logging.getLogger(__name__)930 logger.addHandler(logging.StreamHandler(sys.stderr))931 932 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)934 935 class LoggingUndefined(base): # type: ignore936 __slots__ = ()937 117 unmodified linesmodified:src/jinja2/utils.py+1 added-1 removed
257 unmodified lines258 """259 if trim_url_limit is not None:260 261 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]}..."264 265 return x266 491 unmodified linesmodified:.pre-commit-config.yaml+3 added-4 removed
1 unmodified line2 autoupdate_branch: "3.1.x"3 autoupdate_schedule: monthly4 repos: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: black15 unmodified linesmodified:pyproject.toml-2 removed
40 unmodified lines41 [tool.pytest.ini_options]42 testpaths = ["tests"]43 filterwarnings = [44 "error",45- # change in Python 3.12 beta causes warning from inside pytest46- "ignore:ast:DeprecationWarning",45 ]46 47 [tool.coverage.run]48 branch = true20 unmodified linesmodified:tox.ini+1 added-1 removed
1 [tox]2 envlist =3 py3{12,11,10,9,8,7}4- pypy394+ pypy3105 style6 typing7 docs8 skip_missing_interpreters = true23 unmodified lines