From 7b1c3d02827ff4f3111555b07cfa4bb852ede331 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Thu, 7 Apr 2022 14:40:35 +0530 Subject: [PATCH] Upgrade and pin black version Signed-off-by: Abhijeet Kasurde --- tox.ini | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index 3aeacbcff..7c262a5bb 100644 --- a/tox.ini +++ b/tox.ini @@ -10,7 +10,7 @@ install_command = pip install {opts} {packages} [testenv:black] deps = - black==19.10b0 + black >= 22.0, < 23.0 commands = black {toxinidir}/plugins {toxinidir}/tests @@ -21,7 +21,7 @@ commands = collection_prep_add_docs -p . [testenv:refresh_modules] deps = git+https://github.com/ansible-collections/vmware_rest_code_generator - black==19.10b0 + {[testenv:black]deps} commands = vmware_rest_code_generator_refresh_modules --target-dir . {posargs} vmware_rest_code_generator_refresh_examples --target-dir . @@ -56,10 +56,10 @@ setenv = [testenv:linters] deps = - black==19.10b0 flake8 antsibull-changelog antsibull + {[testenv:black]deps} commands = black -v --check {toxinidir}/plugins {toxinidir}/tests flake8 {posargs} {toxinidir}/plugins {toxinidir}/tests