Merge branch '8.1.x'
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Sagi Buchbinder Shadur · committed by Sagi Buchbinder Shadur · parents cd7b51c, 6e05e1f · Browse files · 7 files·+58 added−56 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
7 files+58 added−56 removed
- tests:+5 added−1 removed
- other:+53 added−55 removed
Provenance
- Commit
b0538df- Tree
8d372bb- Author
Sagi Buchbinder Shadur <saroad2@gmail.com>- Committer
Sagi Buchbinder Shadur <saroad2@gmail.com>- Parent 1
cd7b51c- Parent 2
6e05e1f
7 files changed+58 added−56 removed
modified:requirements/build.txt+7 added-7 removed
3 unmodified lines4 # To update, run:5 #6 # pip-compile-multi7 #8-build==0.9.09- # via -r requirements/build.in10-packaging==23.08+build==0.10.09+ # via -r requirements\build.in10+colorama==0.4.611 # via build12-pep517==0.13.012+packaging==23.113 # via build14+pyproject-hooks==1.0.015+ # via build16 tomli==2.0.115- # via16- # build17- # pep51717+ # via buildmodified:requirements/dev.txt+18 added-20 removed
6 unmodified lines7 #8 -r docs.txt9 -r tests.txt10 -r typing.txt11-build==0.9.011+build==0.10.012 # via pip-tools13-cachetools==5.2.013+cachetools==5.3.014 # via tox15 cfgv==3.3.116 # via pre-commit17 chardet==5.1.01 unmodified line19 click==8.1.320 # via21 # pip-compile-multi22 # pip-tools23-colorama==0.4.624- # via tox23 distlib==0.3.624 # via virtualenv27-filelock==3.9.025+filelock==3.12.026 # via27 # tox28 # virtualenv31-identify==2.5.1129+identify==2.5.2330 # via pre-commit31 nodeenv==1.7.032 # via pre-commit35-pep517==0.13.036- # via build37-pip-compile-multi==2.6.138- # via -r requirements/dev.in39-pip-tools==6.12.133+pip-compile-multi==2.6.234+ # via -r requirements\dev.in35+pip-tools==6.13.036 # via pip-compile-multi41-platformdirs==2.6.237+platformdirs==3.5.038 # via39 # tox40 # virtualenv45-pre-commit==2.21.046- # via -r requirements/dev.in47-pyproject-api==1.2.141+pre-commit==3.3.142+ # via -r requirements\dev.in43+pyproject-api==1.5.144 # via tox45+pyproject-hooks==1.0.046+ # via build47 pyyaml==6.048 # via pre-commit51-toposort==1.749+toposort==1.1050 # via pip-compile-multi53-tox==4.1.054- # via -r requirements/dev.in55-virtualenv==20.17.151+tox==4.5.152+ # via -r requirements\dev.in53+virtualenv==20.23.054 # via55 # pre-commit56 # tox59-wheel==0.38.457+wheel==0.40.058 # via pip-tools59 60 # The following packages are considered to be unsafe in a requirements file:61 # pip1 unmodified linemodified:requirements/docs.txt+19 added-19 removed
3 unmodified lines4 # To update, run:5 #6 # pip-compile-multi7 #8-alabaster==0.7.128+alabaster==0.7.139 # via sphinx10-babel==2.11.010+babel==2.12.111 # via sphinx12 certifi==2022.12.713 # via requests14-charset-normalizer==2.1.114+charset-normalizer==3.1.015 # via requests16+colorama==0.4.617+ # via sphinx18 docutils==0.18.119 # via20 # sphinx21 # sphinx-tabs2 unmodified lines24 imagesize==1.4.125 # via sphinx26 jinja2==3.1.227 # via sphinx26-markupsafe==2.1.128+markupsafe==2.1.229 # via jinja228-packaging==22.030+packaging==23.131 # via32 # pallets-sphinx-themes33 # sphinx32-pallets-sphinx-themes==2.0.333- # via -r requirements/docs.in34-pygments==2.13.034+pallets-sphinx-themes==2.1.035+ # via -r requirements\docs.in36+pygments==2.15.137 # via38 # sphinx39 # sphinx-tabs38-pytz==2022.739- # via babel40-requests==2.28.140+requests==2.29.041 # via sphinx42 snowballstemmer==2.2.043 # via sphinx44-sphinx==6.0.044+sphinx==7.0.045 # via46- # -r requirements/docs.in46+ # -r requirements\docs.in47 # pallets-sphinx-themes48 # sphinx-issues49 # sphinx-tabs50 # sphinxcontrib-log-cabinet51 sphinx-issues==3.0.152- # via -r requirements/docs.in52+ # via -r requirements\docs.in53 sphinx-tabs==3.4.154- # via -r requirements/docs.in55-sphinxcontrib-applehelp==1.0.254+ # via -r requirements\docs.in55+sphinxcontrib-applehelp==1.0.456 # via sphinx57 sphinxcontrib-devhelp==1.0.258 # via sphinx59-sphinxcontrib-htmlhelp==2.0.059+sphinxcontrib-htmlhelp==2.0.160 # via sphinx61 sphinxcontrib-jsmath==1.0.162 # via sphinx63 sphinxcontrib-log-cabinet==1.0.164- # via -r requirements/docs.in64+ # via -r requirements\docs.in65 sphinxcontrib-qthelp==1.0.366 # via sphinx67 sphinxcontrib-serializinghtml==1.1.568 # via sphinx69-urllib3==1.26.1369+urllib3==1.26.1570 # via requestsmodified:requirements/tests.txt+6 added-6 removed
3 unmodified lines4 # To update, run:5 #6 # pip-compile-multi7 #8-attrs==22.2.08+colorama==0.4.69 # via pytest10-exceptiongroup==1.1.010+exceptiongroup==1.1.111 # via pytest12-iniconfig==1.1.112+iniconfig==2.0.013 # via pytest14-packaging==22.014+packaging==23.115 # via pytest16 pluggy==1.0.017 # via pytest18-pytest==7.2.019- # via -r requirements/tests.in18+pytest==7.3.119+ # via -r requirements\tests.in20 tomli==2.0.121 # via pytestmodified:src/click/core.py+1 added-1 removed
2001 unmodified lines2002 :param param_decls: the parameter declarations for this option or2003 argument. This is a list of flags or argument2004 names.2005 :param type: the type that should be used. Either a :class:`ParamType`2006- or a Python type. The later is converted into the former2006+ or a Python type. The latter is converted into the former2007 automatically if supported.2008 :param required: controls if this is optional or not.2009 :param default: the default value if omitted. This can also be a callable,2010 in which case it's invoked when the default is needed1006 unmodified linesmodified:tests/test_arguments.py+5 added-1 removed
1 import sys2+from unittest import mock3 4 import pytest5 6 import click79 unmodified lines86 arg, str87 ), "UTF-8 encoded argument should be implicitly converted to Unicode"88 89 # Simulate empty locale environment variables89- monkeypatch.setattr(sys.stdin, "encoding", "utf-8")90 monkeypatch.setattr(sys, "getfilesystemencoding", lambda: "utf-8")91 monkeypatch.setattr(sys, "getdefaultencoding", lambda: "utf-8")92+ # sys.stdin.encoding is readonly, needs some extra effort to patch.93+ stdin = mock.Mock(wraps=sys.stdin)94+ stdin.encoding = "utf-8"95+ monkeypatch.setattr(sys, "stdin", stdin)96 97 runner.invoke(98 from_bytes,99 ["Something outside of ASCII range: 林".encode()],284 unmodified linesmodified:.pre-commit-config.yaml+2 added-2 removed
1234566789102 unmodified lines1314151617171819202111 unmodified linesci: autoupdate_branch: "8.1.x" autoupdate_schedule: monthlyrepos: - repo: https://github.com/asottile/pyupgrade rev: v3.3.1 rev: v3.3.2 hooks: - id: pyupgrade args: ["--py37-plus"] - repo: https://github.com/asottile/reorder_python_imports2 unmodified lines - id: reorder-python-imports args: ["--application-directories", "src"] additional_dependencies: ["setuptools>60.9"] - repo: https://github.com/psf/black rev: 23.1.0 rev: 23.3.0 hooks: - id: black - repo: https://github.com/PyCQA/flake8 rev: 6.0.011 unmodified lines