Skip to content

Commit

Permalink
pre-commit autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
lafrech committed Feb 12, 2024
1 parent b72dfa9 commit 0bf6113
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ repos:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black
language_version: python3
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8
additional_dependencies: [flake8-bugbear==23.12.2 ]
additional_dependencies: [flake8-bugbear==24.2.6]
- repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
hooks:
Expand Down
1 change: 1 addition & 0 deletions flask_smorest/arguments.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Arguments parsing"""

from collections import abc
from copy import deepcopy
from functools import wraps
Expand Down
1 change: 1 addition & 0 deletions flask_smorest/globals.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Globals"""

from flask import current_app, request
from werkzeug.local import LocalProxy

Expand Down
9 changes: 6 additions & 3 deletions flask_smorest/pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- Post-pagination: the resource returns an iterator (typically a DB cursor) and
a pager is provided to paginate the data and get the total number of items.
"""

from copy import deepcopy
from functools import wraps
import http
Expand Down Expand Up @@ -278,9 +279,11 @@ def _document_pagination_metadata(self, spec, resp_doc):
"""
resp_doc.setdefault("headers", {}).update(
{
self.PAGINATION_HEADER_NAME: "PAGINATION"
if spec.openapi_version.major >= 3
else PAGINATION_HEADER
self.PAGINATION_HEADER_NAME: (
"PAGINATION"
if spec.openapi_version.major >= 3
else PAGINATION_HEADER
)
}
)

Expand Down
1 change: 1 addition & 0 deletions flask_smorest/spec/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""API specification using OpenAPI"""

import json
import http

Expand Down
1 change: 1 addition & 0 deletions flask_smorest/spec/field_converters.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Custom field properties functions"""

from flask_smorest.fields import Upload


Expand Down
1 change: 1 addition & 0 deletions flask_smorest/spec/plugins.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""apispec plugins"""

from collections.abc import Mapping
import re

Expand Down
1 change: 1 addition & 0 deletions tests/test_api.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test Api class"""

import pytest
from flask import jsonify
from flask.views import MethodView
Expand Down
1 change: 1 addition & 0 deletions tests/test_spec.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test Api class"""

import json
import http
from unittest import mock
Expand Down

0 comments on commit 0bf6113

Please sign in to comment.