Skip to content

Commit c7b880f

Browse files
authored
Merge pull request #501 from p1c2u/dependabot/pip/black-23.1.0
Bump black from 22.12.0 to 23.1.0
2 parents 13df410 + 1a9ad16 commit c7b880f

File tree

28 files changed

+34
-83
lines changed

28 files changed

+34
-83
lines changed

Diff for: openapi_core/casting/schemas/factories.py

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111

1212
class SchemaCastersFactory:
13-
1413
DUMMY_CASTERS = [
1514
"string",
1615
"object",

Diff for: openapi_core/contrib/django/handlers.py

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818

1919
class DjangoOpenAPIErrorsHandler:
20-
2120
OPENAPI_ERROR_STATUS: Dict[Type[BaseException], int] = {
2221
ServerNotFound: 400,
2322
SecurityNotFound: 403,

Diff for: openapi_core/contrib/django/middlewares.py

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717

1818
class DjangoOpenAPIMiddleware:
19-
2019
request_class = DjangoOpenAPIRequest
2120
response_class = DjangoOpenAPIResponse
2221
errors_handler = DjangoOpenAPIErrorsHandler()

Diff for: openapi_core/contrib/django/requests.py

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727

2828
class DjangoOpenAPIRequest:
29-
3029
path_regex = re.compile(PATH_PARAMETER_PATTERN)
3130

3231
def __init__(self, request: HttpRequest):

Diff for: openapi_core/contrib/falcon/handlers.py

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919

2020
class FalconOpenAPIErrorsHandler:
21-
2221
OPENAPI_ERROR_STATUS: Dict[Type[BaseException], int] = {
2322
ServerNotFound: 400,
2423
SecurityNotFound: 403,

Diff for: openapi_core/contrib/falcon/middlewares.py

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919

2020
class FalconOpenAPIMiddleware(OpenAPIProcessor):
21-
2221
request_class = FalconOpenAPIRequest
2322
response_class = FalconOpenAPIResponse
2423
errors_handler = FalconOpenAPIErrorsHandler()

Diff for: openapi_core/contrib/flask/handlers.py

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717

1818
class FlaskOpenAPIErrorsHandler:
19-
2019
OPENAPI_ERROR_STATUS: Dict[Type[BaseException], int] = {
2120
ServerNotFound: 400,
2221
SecurityNotFound: 403,

Diff for: openapi_core/contrib/werkzeug/requests.py

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414

1515
class WerkzeugOpenAPIRequest:
16-
1716
path_regex = re.compile(PATH_PARAMETER_PATTERN)
1817

1918
def __init__(self, request: Request):

Diff for: openapi_core/deserializing/media_types/factories.py

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222

2323
class MediaTypeDeserializersFactory:
24-
2524
MEDIA_TYPE_DESERIALIZERS: Dict[str, DeserializerCallable] = {
2625
"application/json": loads,
2726
"application/x-www-form-urlencoded": urlencoded_form_loads,

Diff for: openapi_core/deserializing/parameters/factories.py

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121

2222
class ParameterDeserializersFactory:
23-
2423
PARAMETER_STYLE_DESERIALIZERS: Dict[str, DeserializerCallable] = {
2524
"form": partial(split, separator=","),
2625
"simple": partial(split, separator=","),

Diff for: openapi_core/extensions/models/factories.py

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414

1515
class DictFactory:
16-
1716
base_class = dict
1817

1918
def create(

Diff for: openapi_core/security/factories.py

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111

1212
class SecurityProviderFactory:
13-
1413
PROVIDERS: Dict[str, Type[BaseProvider]] = {
1514
"apiKey": ApiKeyProvider,
1615
"http": HttpProvider,

Diff for: openapi_core/templating/util.py

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ def _handle_field(self, field: str) -> Any:
1414

1515

1616
class PathParameter:
17-
1817
name = "PathParameter"
1918
pattern = r"[^\/]+"
2019

Diff for: openapi_core/unmarshalling/schemas/factories.py

-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747

4848

4949
class SchemaValidatorsFactory:
50-
5150
CONTEXTS = {
5251
ValidationContext.REQUEST: "write",
5352
ValidationContext.RESPONSE: "read",
@@ -83,7 +82,6 @@ def create(self, schema: Spec) -> Validator:
8382

8483

8584
class SchemaUnmarshallersFactory:
86-
8785
UNMARSHALLERS: Dict[str, Type[BaseSchemaUnmarshaller]] = {
8886
"string": StringUnmarshaller,
8987
"integer": IntegerUnmarshaller,

Diff for: openapi_core/unmarshalling/schemas/unmarshallers.py

-9
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454

5555

5656
class BaseSchemaUnmarshaller:
57-
5857
FORMATTERS: FormattersDict = {
5958
None: Formatter(),
6059
}
@@ -198,7 +197,6 @@ def _iter_all_of_schemas(
198197

199198

200199
class StringUnmarshaller(BaseSchemaUnmarshaller):
201-
202200
FORMATTERS: FormattersDict = {
203201
None: Formatter.from_callables(partial(is_string, None), str),
204202
"password": Formatter.from_callables(
@@ -224,7 +222,6 @@ class StringUnmarshaller(BaseSchemaUnmarshaller):
224222

225223

226224
class IntegerUnmarshaller(BaseSchemaUnmarshaller):
227-
228225
FORMATTERS: FormattersDict = {
229226
None: Formatter.from_callables(partial(is_integer, None), int),
230227
"int32": Formatter.from_callables(
@@ -237,7 +234,6 @@ class IntegerUnmarshaller(BaseSchemaUnmarshaller):
237234

238235

239236
class NumberUnmarshaller(BaseSchemaUnmarshaller):
240-
241237
FORMATTERS: FormattersDict = {
242238
None: Formatter.from_callables(
243239
partial(is_number, None), format_number
@@ -252,14 +248,12 @@ class NumberUnmarshaller(BaseSchemaUnmarshaller):
252248

253249

254250
class BooleanUnmarshaller(BaseSchemaUnmarshaller):
255-
256251
FORMATTERS: FormattersDict = {
257252
None: Formatter.from_callables(partial(is_bool, None), forcebool),
258253
}
259254

260255

261256
class NullUnmarshaller(BaseSchemaUnmarshaller):
262-
263257
FORMATTERS: FormattersDict = {
264258
None: Formatter.from_callables(partial(is_null, None), None),
265259
}
@@ -286,7 +280,6 @@ def __init__(
286280

287281

288282
class ArrayUnmarshaller(ComplexUnmarshaller):
289-
290283
FORMATTERS: FormattersDict = {
291284
None: Formatter.from_callables(partial(is_array, None), list),
292285
}
@@ -305,7 +298,6 @@ def unmarshal(self, value: Any) -> Optional[List[Any]]:
305298

306299

307300
class ObjectUnmarshaller(ComplexUnmarshaller):
308-
309301
FORMATTERS: FormattersDict = {
310302
None: Formatter.from_callables(partial(is_object, None), dict),
311303
}
@@ -439,7 +431,6 @@ def unmarshal(self, value: Any) -> Any:
439431

440432

441433
class AnyUnmarshaller(MultiTypeUnmarshaller):
442-
443434
SCHEMA_TYPES_ORDER = [
444435
"object",
445436
"array",

Diff for: openapi_core/validation/request/protocols.py

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
@runtime_checkable
1818
class BaseRequest(Protocol):
19-
2019
parameters: RequestParameters
2120

2221
@property

Diff for: openapi_core/validation/validators.py

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242

4343

4444
class BaseValidator:
45-
4645
schema_unmarshallers_factory: SchemaUnmarshallersFactory = NotImplemented
4746

4847
def __init__(

Diff for: poetry.lock

+33-37
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ requests = ["requests"]
7575
starlette = ["starlette", "httpx"]
7676

7777
[tool.poetry.dev-dependencies]
78-
black = "^22.12.0"
78+
black = "^23.1.0"
7979
django = ">=3.0"
8080
djangorestframework = "^3.11.2"
8181
falcon = ">=3.0"

Diff for: tests/integration/contrib/django/test_django_project.py

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99

1010
class BaseTestDjangoProject:
11-
1211
api_key = "12345"
1312

1413
@property

Diff for: tests/integration/contrib/falcon/test_falcon_project.py

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77

88
class BaseTestFalconProject:
9-
109
api_key = "12345"
1110

1211
@property

Diff for: tests/integration/contrib/flask/test_flask_decorator.py

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99

1010
class TestFlaskOpenAPIDecorator:
11-
1211
view_response_callable = None
1312

1413
@pytest.fixture

Diff for: tests/integration/contrib/flask/test_flask_views.py

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88

99
class TestFlaskOpenAPIView:
10-
1110
view_response = None
1211

1312
@pytest.fixture

Diff for: tests/integration/schema/test_spec.py

-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313

1414
class TestPetstore:
15-
1615
api_key = "12345"
1716

1817
@property
@@ -340,7 +339,6 @@ def response_validator(self, spec):
340339
return ResponseValidator(spec)
341340

342341
def test_spec(self, spec, spec_dict):
343-
344342
info = spec / "info"
345343
info_spec = spec_dict["info"]
346344
assert info["title"] == info_spec["title"]

Diff for: tests/integration/validation/test_minimal.py

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88

99
class TestMinimal:
10-
1110
servers = [
1211
"http://minimal.test/",
1312
"https://bad.remote.domain.net/",

Diff for: tests/integration/validation/test_petstore.py

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444

4545

4646
class TestPetstore:
47-
4847
api_key = "12345"
4948

5049
@property

0 commit comments

Comments
 (0)