Skip to content

Commit 2bfefd4

Browse files
committed
Revert "py310 and some changes"
This reverts commit 0434d29.
1 parent 9f9ff95 commit 2bfefd4

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,19 @@ extra_quality_checks:
88
python utils/check_copies.py
99
python utils/check_dummies.py
1010
python utils/check_repo.py
11+
doc-builder style src/accelerate docs/source --max_len 119
1112

1213
# this target runs checks on all files
1314
quality:
1415
ruff check $(check_dirs)
1516
ruff format --check $(check_dirs)
17+
doc-builder style src/accelerate docs/source --max_len 119 --check_only
1618

1719
# Format source code automatically and check is there are any problems left that need manual fixing
1820
style:
1921
ruff check $(check_dirs) --fix
2022
ruff format $(check_dirs)
23+
doc-builder style src/accelerate docs/source --max_len 119
2124

2225
# Run tests for the library
2326
test_core:

pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.ruff]
22
line-length = 119
3-
target-version = "py310"
3+
target-version = "py39"
44

55
[tool.ruff.lint]
66
preview = true
@@ -20,9 +20,6 @@ ignore = [
2020
"E741", # Ambiguous variable name
2121
"W605", # Invalid escape sequence
2222
"UP007", # X | Y type annotations
23-
"UP045", # Use `X | None` for type annotations
24-
"UP035", # temporarily disabled to minimize upgrade changes
25-
2623
]
2724

2825
[tool.ruff.lint.per-file-ignores]

setup.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,13 @@
1616

1717

1818
extras = {}
19-
extras["quality"] = ["ruff == 0.13.1"]
20-
19+
extras["quality"] = [
20+
"black ~= 23.1", # hf-doc-builder has a hidden dependency on `black`
21+
"hf-doc-builder >= 0.3.0",
22+
"ruff ~= 0.11.2",
23+
]
2124
extras["docs"] = []
22-
extras["test_prod"] = ["pytest>=7.2.0", "pytest-xdist", "pytest-subtests", "parameterized", "pytest-order"]
25+
extras["test_prod"] = ["pytest>=7.2.0,<=8.0.0", "pytest-xdist", "pytest-subtests", "parameterized", "pytest-order"]
2326
extras["test_dev"] = [
2427
"datasets",
2528
"diffusers",
@@ -76,9 +79,9 @@
7679
"accelerate-merge-weights=accelerate.commands.merge:main",
7780
]
7881
},
79-
python_requires=">=3.10.0",
82+
python_requires=">=3.9.0",
8083
install_requires=[
81-
"numpy>=1.17",
84+
"numpy>=1.17,<3.0.0",
8285
"packaging>=20.0",
8386
"psutil",
8487
"pyyaml",
@@ -95,7 +98,7 @@
9598
"License :: OSI Approved :: Apache Software License",
9699
"Operating System :: OS Independent",
97100
"Programming Language :: Python :: 3",
98-
"Programming Language :: Python :: 3.10",
101+
"Programming Language :: Python :: 3.9",
99102
"Topic :: Scientific/Engineering :: Artificial Intelligence",
100103
],
101104
)

0 commit comments

Comments
 (0)