Remove isort from dependencies (#38616)
Some checks are pending
Self-hosted runner (benchmark) / Benchmark (aws-g5-4xlarge-cache) (push) Waiting to run
Build documentation / build (push) Waiting to run
Slow tests on important models (on Push - A10) / Get all modified files (push) Waiting to run
Slow tests on important models (on Push - A10) / Slow & FA2 tests (push) Blocked by required conditions
Self-hosted runner (push-caller) / Check if setup was changed (push) Waiting to run
Self-hosted runner (push-caller) / build-docker-containers (push) Blocked by required conditions
Self-hosted runner (push-caller) / Trigger Push CI (push) Blocked by required conditions
Secret Leaks / trufflehog (push) Waiting to run
Update Transformers metadata / build_and_package (push) Waiting to run

Removed isort as a dependency
This commit is contained in:
Sai-Suraj-27 2025-06-05 22:12:49 +05:30 committed by GitHub
parent fa921ad854
commit 88912b8e95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 6 deletions

View File

@ -120,7 +120,6 @@ _deps = [
"huggingface-hub>=0.30.0,<1.0", "huggingface-hub>=0.30.0,<1.0",
"importlib_metadata", "importlib_metadata",
"ipadic>=1.0.0,<2.0", "ipadic>=1.0.0,<2.0",
"isort>=5.5.4",
"jax>=0.4.1,<=0.4.13", "jax>=0.4.1,<=0.4.13",
"jaxlib>=0.4.1,<=0.4.13", "jaxlib>=0.4.1,<=0.4.13",
"jieba", "jieba",
@ -368,7 +367,7 @@ extras["testing"] = (
extras["deepspeed-testing"] = extras["deepspeed"] + extras["testing"] + extras["optuna"] + extras["sentencepiece"] extras["deepspeed-testing"] = extras["deepspeed"] + extras["testing"] + extras["optuna"] + extras["sentencepiece"]
extras["ruff"] = deps_list("ruff") extras["ruff"] = deps_list("ruff")
extras["quality"] = deps_list("datasets", "isort", "ruff", "GitPython", "urllib3", "libcst", "rich", "pandas") extras["quality"] = deps_list("datasets", "ruff", "GitPython", "urllib3", "libcst", "rich", "pandas")
extras["all"] = ( extras["all"] = (
extras["tf"] extras["tf"]

View File

@ -27,7 +27,6 @@ deps = {
"huggingface-hub": "huggingface-hub>=0.30.0,<1.0", "huggingface-hub": "huggingface-hub>=0.30.0,<1.0",
"importlib_metadata": "importlib_metadata", "importlib_metadata": "importlib_metadata",
"ipadic": "ipadic>=1.0.0,<2.0", "ipadic": "ipadic>=1.0.0,<2.0",
"isort": "isort>=5.5.4",
"jax": "jax>=0.4.1,<=0.4.13", "jax": "jax>=0.4.1,<=0.4.13",
"jaxlib": "jaxlib>=0.4.1,<=0.4.13", "jaxlib": "jaxlib>=0.4.1,<=0.4.13",
"jieba": "jieba", "jieba": "jieba",

View File

@ -38,12 +38,12 @@ from typing import TYPE_CHECKING, Any, Callable, Optional, Union
# Integrations must be imported before ML frameworks: # Integrations must be imported before ML frameworks:
# isort: off # ruff: isort: off
from .integrations import ( from .integrations import (
get_reporting_integration_callbacks, get_reporting_integration_callbacks,
) )
# isort: on # ruff: isort: on
import huggingface_hub.utils as hf_hub_utils import huggingface_hub.utils as hf_hub_utils
import numpy as np import numpy as np

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
""" """
isort:skip_file ruff: isort: skip_file
""" """
import os import os