From 365f75233f67e03c761809bedff6defc72f988d4 Mon Sep 17 00:00:00 2001 From: Anton Lozhkov Date: Thu, 25 Aug 2022 15:19:59 +0200 Subject: [PATCH] Pin black==22.3 to keep a stable --preview flag (#249) Pin black==22.3 --- setup.py | 4 ++-- src/diffusers/dependency_versions_table.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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",