Skip to content

Commit

Permalink
Merge pull request #793 from marshmallow-code/pre-commit-autoupdate
Browse files Browse the repository at this point in the history
undefined
  • Loading branch information
lafrech committed Sep 16, 2022
2 parents 4d53c20 + 5a3f555 commit cbcff0d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v2.32.0
rev: v2.38.0
hooks:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/python/black
rev: 22.3.0
rev: 22.8.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/pycqa/flake8
rev: 4.0.1
rev: 5.0.4
hooks:
- id: flake8
additional_dependencies: [flake8-bugbear==22.4.25]
additional_dependencies: [flake8-bugbear==22.9.11]
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.1
hooks:
- id: blacken-docs
additional_dependencies: [black==22.3.0]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.950
rev: v0.971
hooks:
- id: mypy
additional_dependencies: ["marshmallow>=3,<4", "types-PyYAML"]
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
license_files = LICENSE

[flake8]
ignore = E203, E266, E501, W503
max-line-length = 110
max-complexity = 18
select = B,C,E,F,W,T4,B9
extend-ignore = E203

[mypy]
ignore_missing_imports = true
Expand Down
2 changes: 1 addition & 1 deletion src/apispec/ext/marshmallow/field_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def field2default(
else:
default = field.load_default
if default is not marshmallow.missing and not callable(default):
default = field._serialize(default, None, None) # type:ignore
default = field._serialize(default, None, None)
ret["default"] = default
return ret

Expand Down

0 comments on commit cbcff0d

Please sign in to comment.