Skip to content
Myr

update requirements

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 · parent 9f99425 · Browse files · 12 files+39 added−46 removed
This commit

State

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

Diff stats

12 files+39 added−46 removed

  • tests:+2 added−2 removed
  • other:+37 added−44 removed

12 files+39 added−46 removed

modified:requirements/dev.txt+10 added-8 removed
6 unmodified lines
7#8-r docs.txt9-r tests.txt10-r typing.txt11build==0.8.011build==0.9.012 # via pip-tools13cfgv==3.3.114 # via pre-commit15click==8.1.3
5 unmodified lines
21filelock==3.8.022 # via23 # tox24 # virtualenv25identify==2.5.525identify==2.5.926 # via pre-commit27nodeenv==1.7.028 # via pre-commit29pep517==0.13.030 # via build31pip-compile-multi==2.4.631pip-compile-multi==2.6.132 # via -r requirements/dev.in33pip-tools==6.8.033pip-tools==6.10.034 # via pip-compile-multi35platformdirs==2.5.235platformdirs==2.5.436 # via virtualenv37pre-commit==2.20.038 # via -r requirements/dev.in39py==1.11.040 # via tox41pyyaml==6.042 # via pre-commit43six==1.16.044 # via tox45toml==0.10.246 # via pre-commit47toposort==1.748 # via pip-compile-multi47tox==3.26.049tox==3.27.150 # via -r requirements/dev.in49virtualenv==20.16.551virtualenv==20.16.752 # via53 # pre-commit54 # tox53wheel==0.37.155wheel==0.38.456 # via pip-tools5758# The following packages are considered to be unsafe in a requirements file:59# pip
1 unmodified line
modified:requirements/docs.txt+5 added-5 removed
5 unmodified lines
6# pip-compile-multi7#8alabaster==0.7.129 # via sphinx10babel==2.10.310babel==2.11.011 # via sphinx12certifi==2022.6.15.112certifi==2022.9.2413 # via requests14charset-normalizer==2.1.115 # via requests16docutils==0.17.117 # via18 # sphinx19 # sphinx-tabs20idna==3.320idna==3.421 # via requests22imagesize==1.4.123 # via sphinx24jinja2==3.1.2
11 unmodified lines
36 # sphinx37 # sphinx-tabs38pyparsing==3.0.939 # via packaging40pytz==2022.2.140pytz==2022.641 # via babel42requests==2.28.143 # via sphinx44snowballstemmer==2.2.0
22 unmodified lines
67sphinxcontrib-qthelp==1.0.368 # via sphinx69sphinxcontrib-serializinghtml==1.1.570 # via sphinx71urllib3==1.26.1271urllib3==1.26.1372 # via requests
modified:requirements/tests.txt+1 added-7 removed
9 unmodified lines
10attrs==22.1.011 # via pytest12blinker==1.513 # via -r requirements/tests.in14greenlet==1.1.3 ; python_version < "3.11"15 # via -r requirements/tests.in14iniconfig==1.1.115 # via pytest16packaging==21.317 # via pytest18pluggy==1.0.019 # via pytest22py==1.11.023 # via pytest20pyparsing==3.0.921 # via packaging26pytest==7.1.322pytest==7.2.023 # via -r requirements/tests.in24python-dotenv==0.21.025 # via -r requirements/tests.in30tomli==2.0.131 # via pytest
modified:requirements/typing.txt+4 added-6 removed
5 unmodified lines
6# pip-compile-multi7#8cffi==1.15.19 # via cryptography10cryptography==38.0.110cryptography==38.0.311 # via -r requirements/typing.in12mypy==0.97112mypy==0.99113 # via -r requirements/typing.in14mypy-extensions==0.4.315 # via mypy16pycparser==2.2117 # via cffi18tomli==2.0.119 # via mypy18types-contextvars==2.4.719 # via -r requirements/typing.in20types-dataclasses==0.6.621 # via -r requirements/typing.in24types-setuptools==65.3.022types-setuptools==65.6.0.123 # via -r requirements/typing.in26typing-extensions==4.3.024typing-extensions==4.4.025 # via mypy
modified:src/flask/app.py+2 added-2 removed
382 unmodified lines
383 _json_encoder: t.Union[t.Type[json.JSONEncoder], None] = None384 _json_decoder: t.Union[t.Type[json.JSONDecoder], None] = None385386 @property # type: ignore[override]387 def json_encoder(self) -> t.Type[json.JSONEncoder]: # type: ignore[override]387 def json_encoder(self) -> t.Type[json.JSONEncoder]:388 """The JSON encoder class to use. Defaults to389 :class:`~flask.json.JSONEncoder`.390391 .. deprecated:: 2.2
30 unmodified lines
422 )423 self._json_encoder = value424425 @property # type: ignore[override]426 def json_decoder(self) -> t.Type[json.JSONDecoder]: # type: ignore[override]426 def json_decoder(self) -> t.Type[json.JSONDecoder]:427 """The JSON decoder class to use. Defaults to428 :class:`~flask.json.JSONDecoder`.429430 .. deprecated:: 2.2
2118 unmodified lines
modified:src/flask/blueprints.py+4 added-4 removed
174 unmodified lines
175176 _json_encoder: t.Union[t.Type[json.JSONEncoder], None] = None177 _json_decoder: t.Union[t.Type[json.JSONDecoder], None] = None178179 @property # type: ignore[override]180 def json_encoder( # type: ignore[override]179 @property180 def json_encoder(181 self,182 ) -> t.Union[t.Type[json.JSONEncoder], None]:183 """Blueprint-local JSON encoder class to use. Set to ``None`` to use the app's.184
24 unmodified lines
209 stacklevel=2,210 )211 self._json_encoder = value212213 @property # type: ignore[override]214 def json_decoder( # type: ignore[override]213 @property214 def json_decoder(215 self,216 ) -> t.Union[t.Type[json.JSONDecoder], None]:217 """Blueprint-local JSON decoder class to use. Set to ``None`` to use the app's.218
488 unmodified lines
modified:src/flask/ctx.py+1 added-1 removed
305 unmodified lines
306 ) -> None:307 self.app = app308 if request is None:309 request = app.request_class(environ)310 request.json_module = app.json # type: ignore[misc]310 request.json_module = app.json311 self.request: Request = request312 self.url_adapter = None313 try:314 self.url_adapter = app.create_url_adapter(self.request)
124 unmodified lines
modified:src/flask/helpers.py+3 added-3 removed
147 unmodified lines
148 try:149 yield from gen150 finally:151 if hasattr(gen, "close"):152 gen.close() # type: ignore152 gen.close()153154 # The trick is to start the generator. Then the code execution runs until155 # the first dummy None is yielded at which point the context was already156 # pushed. This item is discarded. Then when the iteration continues the
129 unmodified lines
286287 return _wz_redirect(location, code=code, Response=Response)288289290def abort( # type: ignore[misc]290def abort(291 code: t.Union[int, "BaseResponse"], *args: t.Any, **kwargs: t.Any292) -> "te.NoReturn":293 """Raise an :exc:`~werkzeug.exceptions.HTTPException` for the given294 status code.
321 unmodified lines
616 if loader is None or import_name == "__main__":617 return os.getcwd()618619 if hasattr(loader, "get_filename"):620 filepath = loader.get_filename(import_name) # type: ignore620 filepath = loader.get_filename(import_name)621 else:622 # Fall back to imports.623 __import__(import_name)624 mod = sys.modules[import_name]
81 unmodified lines
modified:src/flask/testing.py+1 added-1 removed
223 unmodified lines
224 request,225 buffered=buffered,226 follow_redirects=follow_redirects,227 )228 response.json_module = self.application.json # type: ignore[misc]228 response.json_module = self.application.json # type: ignore[assignment]229230 # Re-push contexts that were preserved during the request.231 while self._new_contexts:232 cm = self._new_contexts.pop()
54 unmodified lines
modified:src/flask/wrappers.py+1 added-1 removed
23 unmodified lines
24 provides all of the attributes Werkzeug defines plus a few Flask25 specific ones.26 """2728 json_module = json28 json_module: t.Any = json2930 #: The internal URL rule that matched the request. This can be31 #: useful to inspect which methods are allowed for the URL from32 #: a before/after handler (``request.url_rule.methods``) etc.
139 unmodified lines
modified:tests/typing/typing_app_decorators.py+2 added-2 removed
8 unmodified lines
91011@app.after_request12def after_sync(response: Response) -> Response:13 ...13 return Response()141516@app.after_request17async def after_async(response: Response) -> Response:18 ...18 return Response()192021@app.before_request22def before_sync() -> None:
16 unmodified lines
modified:.pre-commit-config.yaml+5 added-6 removed
1 unmodified line
2 autoupdate_branch: "2.1.x"3 autoupdate_schedule: monthly4repos:5 - repo: https://github.com/asottile/pyupgrade6 rev: v3.2.06 rev: v3.2.27 hooks:8 - id: pyupgrade9 args: ["--py36-plus"]9 args: ["--py37-plus"]10 - repo: https://github.com/asottile/reorder_python_imports11 rev: v3.9.012 hooks:13 - id: reorder-python-imports14 name: Reorder Python imports (src, tests)15 files: "^(?!examples/)"16 args: ["--application-directories", "src"]17 additional_dependencies: ["setuptools>60.9"]17 - repo: https://github.com/psf/black18 rev: 22.10.019 hooks:20 - id: black21 - repo: https://github.com/PyCQA/flake823 rev: 5.0.422 rev: 6.0.023 hooks:24 - id: flake825 additional_dependencies:26 - flake8-bugbear27 - flake8-implicit-str-concat28 - repo: https://github.com/peterdemin/pip-compile-multi30 rev: v2.5.029 rev: v2.6.130 hooks:31 - id: pip-compile-multi-verify32 - repo: https://github.com/pre-commit/pre-commit-hooks34 rev: v4.3.033 rev: v4.4.034 hooks:35 - id: fix-byte-order-marker36 - id: trailing-whitespace37 - id: end-of-file-fixer