Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#868)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.10.1 → 23.12.1](psf/black@23.10.1...23.12.1)
- [github.com/pre-commit/mirrors-mypy: v1.6.1 → v1.8.0](pre-commit/mirrors-mypy@v1.6.1...v1.8.0)

* Update

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Steven Loria <sloria1@gmail.com>
  • Loading branch information
pre-commit-ci[bot] and sloria committed Jan 7, 2024
1 parent 3fe4c47 commit 89151df
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ repos:
rev: v3.15.0
hooks:
- id: pyupgrade
args: [--py37-plus]
args: [--py38-plus]
- repo: https://github.com/psf/black
rev: 23.10.1
rev: 23.12.1
hooks:
- id: black
language_version: python3
Expand All @@ -18,7 +18,7 @@ repos:
rev: 1.16.0
hooks:
- id: blacken-docs
additional_dependencies: [black==22.3.0]
additional_dependencies: [black==23.12.1]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
Expand Down
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ Example Application
plugins=[FlaskPlugin(), MarshmallowPlugin()],
)
# Optional marshmallow support
class CategorySchema(Schema):
id = fields.Int()
Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Example Application
plugins=[FlaskPlugin(), MarshmallowPlugin()],
)
# Optional marshmallow support
class CategorySchema(Schema):
id = fields.Int()
Expand Down
2 changes: 2 additions & 0 deletions docs/using_plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ We'll add some YAML in the docstring to add response information.
app = Flask(__name__)
# NOTE: Plugins may inspect docstrings to gather more information for the spec
@app.route("/gists/<gist_id>")
def gist_detail(gist_id):
Expand Down Expand Up @@ -258,6 +259,7 @@ OpenAPI type and format, or a marshmallow `Field` that has the desired target ma
title="Demo", version="0.1", openapi_version="3.0.0", plugins=(ma_plugin,)
)
# Inherits Integer mapping of ('integer', None)
class CustomInteger(Integer):
pass
Expand Down

0 comments on commit 89151df

Please sign in to comment.