Pin black==22.3 to keep a stable --preview flag (#249)

Pin black==22.3
This commit is contained in:
Anton Lozhkov 2022-08-25 15:19:59 +02:00 committed by GitHub
parent c1efda70b5
commit 365f75233f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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"]

View File

@ -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",