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
Provenance
- Commit
d178653- Tree
f632ab1- Author
David Lord <davidism@gmail.com>- Committer
David Lord <davidism@gmail.com>- Parent
9f99425
12 files changed+39 added−46 removed
modified:requirements/dev.txt+10 added-8 removed
6 unmodified lines7 #8 -r docs.txt9 -r tests.txt10 -r typing.txt11-build==0.8.011+build==0.9.012 # via pip-tools13 cfgv==3.3.114 # via pre-commit15 click==8.1.35 unmodified lines21 filelock==3.8.022 # via23 # tox24 # virtualenv25-identify==2.5.525+identify==2.5.926 # via pre-commit27 nodeenv==1.7.028 # via pre-commit29 pep517==0.13.030 # via build31-pip-compile-multi==2.4.631+pip-compile-multi==2.6.132 # via -r requirements/dev.in33-pip-tools==6.8.033+pip-tools==6.10.034 # via pip-compile-multi35-platformdirs==2.5.235+platformdirs==2.5.436 # via virtualenv37 pre-commit==2.20.038 # via -r requirements/dev.in39+py==1.11.040+ # via tox41 pyyaml==6.042 # via pre-commit43 six==1.16.044 # via tox45 toml==0.10.246 # via pre-commit47 toposort==1.748 # via pip-compile-multi47-tox==3.26.049+tox==3.27.150 # via -r requirements/dev.in49-virtualenv==20.16.551+virtualenv==20.16.752 # via53 # pre-commit54 # tox53-wheel==0.37.155+wheel==0.38.456 # via pip-tools57 58 # The following packages are considered to be unsafe in a requirements file:59 # pip1 unmodified linemodified:requirements/docs.txt+5 added-5 removed
5 unmodified lines6 # pip-compile-multi7 #8 alabaster==0.7.129 # via sphinx10-babel==2.10.310+babel==2.11.011 # via sphinx12-certifi==2022.6.15.112+certifi==2022.9.2413 # via requests14 charset-normalizer==2.1.115 # via requests16 docutils==0.17.117 # via18 # sphinx19 # sphinx-tabs20-idna==3.320+idna==3.421 # via requests22 imagesize==1.4.123 # via sphinx24 jinja2==3.1.211 unmodified lines36 # sphinx37 # sphinx-tabs38 pyparsing==3.0.939 # via packaging40-pytz==2022.2.140+pytz==2022.641 # via babel42 requests==2.28.143 # via sphinx44 snowballstemmer==2.2.022 unmodified lines67 sphinxcontrib-qthelp==1.0.368 # via sphinx69 sphinxcontrib-serializinghtml==1.1.570 # via sphinx71-urllib3==1.26.1271+urllib3==1.26.1372 # via requestsmodified:requirements/tests.txt+1 added-7 removed
9 unmodified lines10 attrs==22.1.011 # via pytest12 blinker==1.513 # via -r requirements/tests.in14-greenlet==1.1.3 ; python_version < "3.11"15- # via -r requirements/tests.in14 iniconfig==1.1.115 # via pytest16 packaging==21.317 # via pytest18 pluggy==1.0.019 # via pytest22-py==1.11.023- # via pytest20 pyparsing==3.0.921 # via packaging26-pytest==7.1.322+pytest==7.2.023 # via -r requirements/tests.in24 python-dotenv==0.21.025 # via -r requirements/tests.in30-tomli==2.0.131- # via pytestmodified:requirements/typing.txt+4 added-6 removed
5 unmodified lines6 # pip-compile-multi7 #8 cffi==1.15.19 # via cryptography10-cryptography==38.0.110+cryptography==38.0.311 # via -r requirements/typing.in12-mypy==0.97112+mypy==0.99113 # via -r requirements/typing.in14 mypy-extensions==0.4.315 # via mypy16 pycparser==2.2117 # via cffi18-tomli==2.0.119- # via mypy18 types-contextvars==2.4.719 # via -r requirements/typing.in20 types-dataclasses==0.6.621 # via -r requirements/typing.in24-types-setuptools==65.3.022+types-setuptools==65.6.0.123 # via -r requirements/typing.in26-typing-extensions==4.3.024+typing-extensions==4.4.025 # via mypymodified:src/flask/app.py+2 added-2 removed
382 unmodified lines383 _json_encoder: t.Union[t.Type[json.JSONEncoder], None] = None384 _json_decoder: t.Union[t.Type[json.JSONDecoder], None] = None385 386 @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`.390 391 .. deprecated:: 2.230 unmodified lines422 )423 self._json_encoder = value424 425 @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`.429 430 .. deprecated:: 2.22118 unmodified linesmodified:src/flask/blueprints.py+4 added-4 removed
174 unmodified lines175 176 _json_encoder: t.Union[t.Type[json.JSONEncoder], None] = None177 _json_decoder: t.Union[t.Type[json.JSONDecoder], None] = None178 179- @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 lines209 stacklevel=2,210 )211 self._json_encoder = value212 213- @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 linesmodified:src/flask/ctx.py+1 added-1 removed
305 unmodified lines306 ) -> 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 linesmodified:src/flask/helpers.py+3 added-3 removed
147 unmodified lines148 try:149 yield from gen150 finally:151 if hasattr(gen, "close"):152- gen.close() # type: ignore152+ gen.close()153 154 # 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 the129 unmodified lines286 287 return _wz_redirect(location, code=code, Response=Response)288 289 290-def abort( # type: ignore[misc]290+def 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 lines616 if loader is None or import_name == "__main__":617 return os.getcwd()618 619 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 linesmodified:src/flask/testing.py+1 added-1 removed
223 unmodified lines224 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]229 230 # Re-push contexts that were preserved during the request.231 while self._new_contexts:232 cm = self._new_contexts.pop()54 unmodified linesmodified:src/flask/wrappers.py+1 added-1 removed
23 unmodified lines24 provides all of the attributes Werkzeug defines plus a few Flask25 specific ones.26 """27 28- json_module = json28+ json_module: t.Any = json29 30 #: 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 linesmodified:tests/typing/typing_app_decorators.py+2 added-2 removed
8 unmodified lines9 10 11 @app.after_request12 def after_sync(response: Response) -> Response:13- ...13+ return Response()14 15 16 @app.after_request17 async def after_async(response: Response) -> Response:18- ...18+ return Response()19 20 21 @app.before_request22 def before_sync() -> None:16 unmodified linesmodified:.pre-commit-config.yaml+5 added-6 removed
1 unmodified line2 autoupdate_branch: "2.1.x"3 autoupdate_schedule: monthly4 repos: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