diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 70e7e7de..cacd8030 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: - id: pycln - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.16.8 + rev: v0.17.0 hooks: # Run the linter. - id: ruff-check @@ -30,7 +30,7 @@ repos: - id: check-symlinks - id: debug-statements - repo: 'https://github.com/PyCQA/flake8' - rev: 7.3.0 + rev: 7.4.1 hooks: - id: flake8 args: @@ -38,7 +38,7 @@ repos: - "--ignore=E203,W503" - "--select=W504" - repo: https://github.com/asottile/pyupgrade - rev: v3.21.2 + rev: v3.22.0 hooks: - id: pyupgrade args: [--py311-plus, --keep-runtime-typing] @@ -62,7 +62,7 @@ repos: - repo: https://github.com/astral-sh/uv-pre-commit # uv version. - rev: 0.12.17 + rev: 0.13.0 hooks: # Update the uv lockfile - id: uv-lock diff --git a/docs/source/conf.py b/docs/source/conf.py index a90aba48..b5aee812 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -25,7 +25,7 @@ """ project = "aiopenapi3" -copyright = f"{datetime.datetime.now().date().year}, Markus Kötter" # noqa: DTZ005 +copyright = f"{datetime.datetime.now().date().year}, Markus Kötter" author = "Markus Kötter" # -- General configuration --------------------------------------------------- diff --git a/src/aiopenapi3/v30/parameter.py b/src/aiopenapi3/v30/parameter.py index dca44709..4a709a1a 100644 --- a/src/aiopenapi3/v30/parameter.py +++ b/src/aiopenapi3/v30/parameter.py @@ -261,7 +261,7 @@ def _flatten_dict(data, key_): def flatten_dict(d: MutableMapping, key: str = ""): return dict(_flatten_dict(d, key)) - values = {k: v for k, v in flatten_dict(values, name).items()} + values = {**flatten_dict(values, name)} return values def _encode__querystring(self, name: str, type_: str, value, schema: "v3xSchemaType", explode: bool): diff --git a/tests/forms_test.py b/tests/forms_test.py index 0fb29835..4de23104 100644 --- a/tests/forms_test.py +++ b/tests/forms_test.py @@ -331,7 +331,7 @@ async def test_String(server, client, form_type): async def test_DateTime(server, client, form_type): cls = client._.datetime.operation.requestBody.content[form_type].schema_.get_type() t = (2026, 8, 29, 15, 4, 22, 32582) - dtl = datetime.datetime(*t) # noqa: DTZ001 + dtl = datetime.datetime(*t) dt = dtl.astimezone(datetime.UTC) data = cls(time=dt.time(), date=dt.date(), datetime=dt, datetimelocal=dtl)