diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d10b9639f..7a08b9274 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,7 +25,7 @@ repos: - --ignore-init-module-imports - --in-place - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.12.0 + rev: 26.1.0 hooks: - id: black args: # arguments to configure black @@ -42,7 +42,7 @@ repos: build| dist""" - repo: https://github.com/python-poetry/poetry - rev: 2.2.1 + rev: 2.3.1 hooks: - id: poetry-check # Please activate this hook in local development environment. In Pre-Commit CI, it would occur error like below: diff --git a/fake_api_server/model/rest_api_doc_config/_model_adapter.py b/fake_api_server/model/rest_api_doc_config/_model_adapter.py index 719146949..934bac53c 100644 --- a/fake_api_server/model/rest_api_doc_config/_model_adapter.py +++ b/fake_api_server/model/rest_api_doc_config/_model_adapter.py @@ -62,28 +62,28 @@ def _configure_customize(customize: str, value_format: ValueFormat) -> Tuple[str _digit = Digit(integer=100, decimal=50) elif formatter is ValueFormat.Date: _strategy = FormatStrategy.CUSTOMIZE - (_customize, _variables) = _configure_customize("date_value", ValueFormat.Date) + _customize, _variables = _configure_customize("date_value", ValueFormat.Date) elif formatter is ValueFormat.DateTime: _strategy = FormatStrategy.CUSTOMIZE - (_customize, _variables) = _configure_customize("datetime_value", ValueFormat.DateTime) + _customize, _variables = _configure_customize("datetime_value", ValueFormat.DateTime) elif formatter is ValueFormat.EMail: _strategy = FormatStrategy.CUSTOMIZE - (_customize, _variables) = _configure_customize("email_value", ValueFormat.EMail) + _customize, _variables = _configure_customize("email_value", ValueFormat.EMail) elif formatter is ValueFormat.UUID: _strategy = FormatStrategy.CUSTOMIZE - (_customize, _variables) = _configure_customize("uuid_value", ValueFormat.UUID) + _customize, _variables = _configure_customize("uuid_value", ValueFormat.UUID) elif formatter is ValueFormat.URI: _strategy = FormatStrategy.CUSTOMIZE - (_customize, _variables) = _configure_customize("uri_value", ValueFormat.URI) + _customize, _variables = _configure_customize("uri_value", ValueFormat.URI) elif formatter is ValueFormat.URL: _strategy = FormatStrategy.CUSTOMIZE - (_customize, _variables) = _configure_customize("url_value", ValueFormat.URL) + _customize, _variables = _configure_customize("url_value", ValueFormat.URL) elif formatter is ValueFormat.IPv4: _strategy = FormatStrategy.CUSTOMIZE - (_customize, _variables) = _configure_customize("ipv4_value", ValueFormat.IPv4) + _customize, _variables = _configure_customize("ipv4_value", ValueFormat.IPv4) elif formatter is ValueFormat.IPv6: _strategy = FormatStrategy.CUSTOMIZE - (_customize, _variables) = _configure_customize("ipv6_value", ValueFormat.IPv6) + _customize, _variables = _configure_customize("ipv6_value", ValueFormat.IPv6) else: raise NotImplementedError