From 828dfabfdf1f5dec538f6950b63c0400e52e0af7 Mon Sep 17 00:00:00 2001 From: Soucelover Date: Tue, 5 May 2026 16:53:04 +0300 Subject: [PATCH 1/2] fix: allow deps arrays in tox.toml schema Change copied from official Tox repo: https://github.com/tox-dev/tox/commit/86234dd57fc6a6dbf801aa98a91642cb9daf1dc8 --- src/schemas/json/tox.json | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/schemas/json/tox.json b/src/schemas/json/tox.json index 588bcd76c16..dc59b9f71cc 100644 --- a/src/schemas/json/tox.json +++ b/src/schemas/json/tox.json @@ -589,7 +589,17 @@ "deprecated": true }, "deps": { - "type": "string", + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "$ref": "#/definitions/subs" + } + } + ], "description": "python dependencies with optional version specifiers, as specified by PEP-440" }, "dependency_groups": { From 5622a3e8e73c6943dc58652ed9656e1904eb87b9 Mon Sep 17 00:00:00 2001 From: Soucelover Date: Tue, 5 May 2026 17:03:13 +0300 Subject: [PATCH 2/2] tests: write a test for the tox.toml change --- src/test/tox/tox-deps.toml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/test/tox/tox-deps.toml diff --git a/src/test/tox/tox-deps.toml b/src/test/tox/tox-deps.toml new file mode 100644 index 00000000000..5f0845537f7 --- /dev/null +++ b/src/test/tox/tox-deps.toml @@ -0,0 +1,7 @@ +#:schema ../../schemas/json/tox.json +env_list = ["py"] + +[env_run_base] +description = "run tests" +deps = ["pytest", "-r requirements.txt"] +commands = [["python", "-m", "pytest"]]