@@ -18,10 +18,10 @@ classifiers = [
1818 " Intended Audience :: Developers" ,
1919 " License :: OSI Approved :: Apache Software License" ,
2020 " Programming Language :: Python" ,
21- " Programming Language :: Python :: 3" ,
2221 " Programming Language :: Python :: 3.10" ,
2322 " Programming Language :: Python :: 3.11" ,
2423 " Programming Language :: Python :: 3.12" ,
24+ " Programming Language :: Python :: 3.13" ,
2525 " Topic :: Software Development :: Libraries" ,
2626 " Topic :: Scientific/Engineering :: Artificial Intelligence" ,
2727]
@@ -100,19 +100,19 @@ test = [
100100]
101101# PyTorch dependency groups
102102cpu = [
103- " torch>=2.4.0,<=2.8.0 " ,
103+ " torch>=2.4.0" ,
104104 " torchvision>=0.19.0" ,
105105]
106106cu118 = [
107- " torch>=2.4.0,<=2.8.0 " ,
108- " torchvision>=0.19.0" ,
107+ " torch>=2.4.0,<=2.5.1 ; python_version < '3.13' " ,
108+ " torchvision>=0.19.0 ; python_version < '3.13' " ,
109109]
110110cu121 = [
111- " torch>=2.4.0,<=2.8.0 " ,
112- " torchvision>=0.19.0" ,
111+ " torch>=2.4.0 ; python_version < '3.13' " ,
112+ " torchvision>=0.19.0 ; python_version < '3.13' " ,
113113]
114114cu124 = [
115- " torch>=2.4.0,<=2.8.0 " ,
115+ " torch>=2.4.0" ,
116116 " torchvision>=0.19.0" ,
117117]
118118cu130 = [
@@ -238,6 +238,44 @@ pytorch-triton-xpu = [
238238# Enable preview features
239239preview = true
240240
241+ # Exclude a variety of commonly ignored directories.
242+ exclude = [
243+ " .bzr" ,
244+ " .direnv" ,
245+ " .eggs" ,
246+ " .git" ,
247+ " .hg" ,
248+ " .mypy_cache" ,
249+ " .nox" ,
250+ " .pants.d" ,
251+ " .pytype" ,
252+ " .ruff_cache" ,
253+ " .svn" ,
254+ " .tox" ,
255+ " .venv" ,
256+ " __pypackages__" ,
257+ " _build" ,
258+ " buck-out" ,
259+ " build" ,
260+ " dist" ,
261+ " node_modules" ,
262+ " venv" ,
263+ ]
264+
265+ # Same as Black.
266+ line-length = 120
267+
268+ # Assume Python 3.10.
269+ target-version = " py310"
270+
271+ # Allow imports relative to the "src" and "tests" directories.
272+ src = [" src" , " tests" ]
273+
274+ [tool .ruff .lint ]
275+
276+ # Allow unused variables when underscore-prefixed.
277+ dummy-variable-rgx = " ^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
278+
241279# Enable rules
242280select = [
243281 " F" , # Pyflakes (`F`)
@@ -292,6 +330,7 @@ select = [
292330
293331ignore = [
294332 # pydocstyle
333+ " COM812" ,
295334 " D107" , # Missing docstring in __init__
296335
297336 # pylint
@@ -346,57 +385,21 @@ ignore = [
346385fixable = [" ALL" ]
347386unfixable = []
348387
349- # Exclude a variety of commonly ignored directories.
350- exclude = [
351- " .bzr" ,
352- " .direnv" ,
353- " .eggs" ,
354- " .git" ,
355- " .hg" ,
356- " .mypy_cache" ,
357- " .nox" ,
358- " .pants.d" ,
359- " .pytype" ,
360- " .ruff_cache" ,
361- " .svn" ,
362- " .tox" ,
363- " .venv" ,
364- " __pypackages__" ,
365- " _build" ,
366- " buck-out" ,
367- " build" ,
368- " dist" ,
369- " node_modules" ,
370- " venv" ,
371- ]
372-
373- # Same as Black.
374- line-length = 120
375-
376- # Allow unused variables when underscore-prefixed.
377- dummy-variable-rgx = " ^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
378-
379- # Assume Python 3.10.
380- target-version = " py310"
381-
382- # Allow imports relative to the "src" and "tests" directories.
383- src = [" src" , " tests" ]
384-
385- [tool .ruff .mccabe ]
388+ [tool .ruff .lint .mccabe ]
386389# Unlike Flake8, default to a complexity level of 10.
387390max-complexity = 15
388391
389392
390- [tool .ruff .pydocstyle ]
393+ [tool .ruff .lint . pydocstyle ]
391394convention = " google"
392395
393- [tool .ruff .flake8-copyright ]
396+ [tool .ruff .lint . flake8-copyright ]
394397notice-rgx = """
395398# Copyright \\ (C\\ ) (\\ d{4}(-\\ d{4})?) Intel Corporation
396399# SPDX-License-Identifier: Apache-2\\ .0
397400"""
398401
399- [tool .ruff .per-file-ignores ]
402+ [tool .ruff .lint . per-file-ignores ]
400403"examples/notebooks/**/*" = [" CPY001" ]
401404
402405# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
0 commit comments