-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
75 lines (70 loc) · 1.84 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "torchrunx"
version = "0.2.4"
authors = [
{ name = "Apoorv Khandelwal", email = "[email protected]" },
{ name = "Peter Curtin", email = "[email protected]" },
]
description = "Automatically initialize distributed PyTorch environments"
readme = "README.md"
urls = { Repository = "https://github.com/apoorvkh/torchrunx.git", Documentation = "https://torchrunx.readthedocs.io" }
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.9"
dependencies = [
"cloudpickle>=3.0",
"fabric>=3.2",
"torch>=2.0",
# torch.distributed depends on numpy
"numpy>=1.20",
]
[dependency-groups]
dev = ["ruff", "pyright", "pytest", "build", "twine"]
dev-extras = ["submitit", "transformers"]
[tool.uv]
managed = true
python-preference = "only-managed"
## Development tools
[tool.ruff]
include = ["pyproject.toml", "src/**/*.py", "tests/**/*.py"]
exclude = ["docs"]
line-length = 100
src = ["src", "tests"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN101",
"ANN102",
"ANN401", # self / cls / Any annotations
"BLE001", # blind exceptions
"TD", # todo syntax
"FIX002", # existing todos
"PLR0913", # too many arguments
"DTZ005", # datetime timezone
"S301", # bandit: pickle
"S603",
"S607", # bandit: subprocess
"COM812",
"ISC001", # conflict with formatter
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = [
"D",
"S101", # allow asserts
"T201", # allow prints
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pyright]
include = ["src", "tests"]
pythonVersion = "3.9"
pythonPlatform = "Linux"