diff --git a/setup.py b/setup.py index 89082ea3..20057a18 100644 --- a/setup.py +++ b/setup.py @@ -78,7 +78,7 @@ from setuptools import find_packages, setup _deps = [ "Pillow", "accelerate>=0.11.0", - "black~=22.0,>=22.3", + "black==22.3", "datasets", "filelock", "flake8>=3.8.3", @@ -163,7 +163,7 @@ extras = {} extras = {} -extras["quality"] = ["black ~= 22.0", "isort >= 5.5.4", "flake8 >= 3.8.3"] +extras["quality"] = ["black==22.3", "isort >= 5.5.4", "flake8 >= 3.8.3"] extras["docs"] = ["hf-doc-builder"] extras["training"] = ["accelerate", "datasets", "tensorboard", "modelcards"] extras["test"] = ["pytest"] diff --git a/src/diffusers/dependency_versions_table.py b/src/diffusers/dependency_versions_table.py index 97179425..1219af52 100644 --- a/src/diffusers/dependency_versions_table.py +++ b/src/diffusers/dependency_versions_table.py @@ -4,7 +4,7 @@ deps = { "Pillow": "Pillow", "accelerate": "accelerate>=0.11.0", - "black": "black~=22.0,>=22.3", + "black": "black==22.3", "datasets": "datasets", "filelock": "filelock", "flake8": "flake8>=3.8.3",