Skip to content

Commit

Permalink
Merge pull request #914 from marshmallow-code/pre-commit-ci-update-co…
Browse files Browse the repository at this point in the history
…nfig

[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
sirosen committed Jan 29, 2024
2 parents e19ee59 + 167a739 commit e50f208
Show file tree
Hide file tree
Showing 20 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repos:
- id: check-github-workflows
- id: check-readthedocs
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
Expand Down
1 change: 1 addition & 0 deletions examples/aiohttp_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
$ http POST :5001/dateadd value=1973-04-10 addend=63
$ http POST :5001/dateadd value=2014-10-23 addend=525600 unit=minutes
"""

import asyncio
import datetime as dt

Expand Down
1 change: 1 addition & 0 deletions examples/annotations_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
$ http POST :5001/add x=40 y=2
$ http GET :5001/users/42
"""

import random
import functools

Expand Down
1 change: 1 addition & 0 deletions examples/bottle_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
$ http POST :5001/dateadd value=1973-04-10 addend=63
$ http POST :5001/dateadd value=2014-10-23 addend=525600 unit=minutes
"""

import datetime as dt

from bottle import route, run, error, response
Expand Down
1 change: 1 addition & 0 deletions examples/falcon_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
$ http POST :8000/dateadd value=1973-04-10 addend=63
$ http POST :8000/dateadd value=2014-10-23 addend=525600 unit=minutes
"""

import datetime as dt

from webargs.core import json
Expand Down
1 change: 1 addition & 0 deletions examples/flask_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
$ http POST :5001/dateadd value=1973-04-10 addend=63
$ http POST :5001/dateadd value=2014-10-23 addend=525600 unit=minutes
"""

import datetime as dt

from flask import Flask, jsonify
Expand Down
1 change: 1 addition & 0 deletions examples/flaskrestful_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
$ http POST :5001/dateadd value=1973-04-10 addend=63
$ http POST :5001/dateadd value=2014-10-23 addend=525600 unit=minutes
"""

import datetime as dt

from flask import Flask
Expand Down
1 change: 1 addition & 0 deletions examples/schema_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
$ http PATCH :5001/users/42 username=freddie
$ http GET :5001/users/ limit==1
"""

import functools
import random

Expand Down
1 change: 1 addition & 0 deletions examples/tornado_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
$ http POST :5001/dateadd value=1973-04-10 addend=63
$ http POST :5001/dateadd value=2014-10-23 addend=525600 unit=minutes
"""

import datetime as dt

import tornado.ioloop
Expand Down
6 changes: 3 additions & 3 deletions src/webargs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

__version__ = "8.4.0"
__parsed_version__ = Version(__version__)
__version_info__: tuple[int, int, int] | tuple[
int, int, int, str, int
] = __parsed_version__.release # type: ignore[assignment]
__version_info__: (
tuple[int, int, int] | tuple[int, int, int, str, int]
) = __parsed_version__.release # type: ignore[assignment]
if __parsed_version__.pre:
__version_info__ += __parsed_version__.pre # type: ignore[assignment]
__all__ = ("ValidationError", "fields", "missing", "validate")
1 change: 1 addition & 0 deletions src/webargs/aiohttpparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def index(request, args):
app = web.Application()
app.router.add_route('GET', '/', index)
"""

from __future__ import annotations

import typing
Expand Down
1 change: 1 addition & 0 deletions src/webargs/asyncparser.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Asynchronous request parser."""

from __future__ import annotations

import typing
Expand Down
1 change: 1 addition & 0 deletions src/webargs/bottleparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def index(args):
if __name__ == '__main__':
run(debug=True)
"""

import bottle

from webargs import core
Expand Down
1 change: 1 addition & 0 deletions src/webargs/djangoparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class MyView(View):
def get(self, args, request):
return HttpResponse('Hello ' + args['name'])
"""

import django

from webargs import core
Expand Down
1 change: 1 addition & 0 deletions src/webargs/falconparser.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Falcon request argument parsing module.
"""

import falcon
import marshmallow as ma
from falcon.util.uri import parse_query_string
Expand Down
1 change: 1 addition & 0 deletions src/webargs/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"content_type": fields.Str(data_key="Content-Type", location="headers"),
}
"""

from __future__ import annotations

import typing
Expand Down
1 change: 1 addition & 0 deletions src/webargs/flaskparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def user_detail(args, uid):
uid=uid, per_page=args["per_page"]
)
"""

from __future__ import annotations

import json
Expand Down
1 change: 1 addition & 0 deletions src/webargs/pyramidparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def hello_world(request, args):
server = make_server('0.0.0.0', 6543, app)
server.serve_forever()
"""

from __future__ import annotations

import functools
Expand Down
1 change: 1 addition & 0 deletions src/webargs/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
Methods and functions in this module may change without
warning and without a major version change.
"""

import pytest
import webtest

Expand Down
1 change: 1 addition & 0 deletions src/webargs/tornadoparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def get(self, args):
response = {'message': 'Hello {}'.format(args['name'])}
self.write(response)
"""

import tornado.concurrent
import tornado.web
from tornado.escape import _unicode
Expand Down

0 comments on commit e50f208

Please sign in to comment.