-
Notifications
You must be signed in to change notification settings - Fork 152
Expand file tree
/
Copy pathpyproject.toml
More file actions
163 lines (150 loc) · 4.35 KB
/
pyproject.toml
File metadata and controls
163 lines (150 loc) · 4.35 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "torchx"
dynamic = ["version"]
description = "TorchX SDK and Components"
readme = "README.md"
license = "BSD-3-Clause"
requires-python = ">=3.10"
authors = [
{ name = "TorchX Devs", email = "torchx@fb.com" }
]
keywords = ["pytorch", "machine learning"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"docstring-parser>=0.8.1",
"pyyaml",
"docker",
"filelock",
"fsspec>=2023.10.0",
"tabulate",
"typing-extensions",
]
[project.optional-dependencies]
aws_batch = ["boto3"]
kubernetes = ["kubernetes>=11"]
dev = [
# -- test deps
"pytest",
"pytest-cov",
# -- plugin deps (schedulers, workspaces)
"aiobotocore",
"boto3",
"kubernetes>=11",
"moto>=5",
"s3fs",
# Only sagemaker-train is needed (not the full sagemaker meta-package which
# pulls in sagemaker-serve and its heavy onnxruntime dependency)
"sagemaker-train",
# -- torchx.apps deps (examples)
"ax-platform[mysql]",
"captum",
"hydra-core",
"ipython",
"mlflow-skinny",
"pytorch-lightning",
"tensorboard",
"torch",
"torch-model-archiver",
"torchmetrics",
"torchserve",
"torchtext",
"torchvision",
"ts",
# -- lintrunner deps
"lintrunner",
"lintrunner-adapters",
"pip", # pip required by lintrunner but not installed by default in a uv env
"pyre-check",
]
[project.urls]
Homepage = "https://github.com/meta-pytorch/torchx"
Documentation = "https://meta-pytorch.org/torchx/"
Repository = "https://github.com/meta-pytorch/torchx"
[project.scripts]
torchx = "torchx.cli.main:main"
[project.entry-points."torchx.tracker"]
fsspec = "torchx.tracker.backend.fsspec:create"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
include = ["torchx*"]
exclude = [
"torchx.examples*",
"torchx*.test*",
"torchx.github*",
"torchx*.fb*",
]
[tool.setuptools.package-data]
torchx = ["version.txt"]
[tool.setuptools.dynamic]
version = { file = "torchx/version.txt" }
[tool.usort]
first_party_detection = false
[tool.black]
target-version = ["py311", "py312"]
[tool.ruff]
line-length = 120
exclude = [
".git",
"docs",
"build",
"scripts",
"venv",
".venv",
]
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
]
ignore = [
# pycodestyle
"E302", # expected 2 blank lines
"E303", # too many blank lines
"E305", # expected 2 blank lines after class or function definition
"E402", # module level import not at top of file
"E501", # line too long (using B950 instead via bugbear)
"E721", # do not compare types, use isinstance()
"E741", # ambiguous variable name
# pyflakes
"F401", # module imported but unused
"F405", # name may be undefined, or defined from star imports
"F821", # undefined name
"F841", # local variable is assigned to but never used
# flake8-bugbear
"B007", # Loop control variable not used within the loop body
"B008", # Do not perform function calls in argument defaults
"B012", # return/continue/break inside finally blocks
"B018", # Found useless expression
"B027", # Empty method in abstract base class without abstract decorator
"B028", # No explicit stacklevel in warnings.warn
"B905", # zip() without an explicit strict= parameter
# flake8-comprehensions
"C400", # Unnecessary generator
"C401", # Unnecessary generator
"C402", # Unnecessary generator
"C403", # Unnecessary list comprehension
"C404", # Unnecessary list comprehension
"C405", # Unnecessary literal
"C408", # Unnecessary dict call
"C411", # Unnecessary list call
"C413", # Unnecessary list/reversed call
"C414", # Unnecessary list/sorted call
"C415", # Unnecessary subscript reversal
"C416", # Unnecessary dict/list/set comprehension
]