Skip to content

Commit 451a91b

Browse files
authored
Revert "Lint fixes #1 torchao/dtypes (#827)"
This reverts commit 144445a.
1 parent 144445a commit 451a91b

File tree

9 files changed

+263
-694
lines changed

9 files changed

+263
-694
lines changed

ruff.toml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# We plan to add files in chunks using the 'include' list below.
33
# To add a new path: Simply add it to the 'include' list.
44
# Example: To lint all files in every subfolder of 'test', add "test/**/*"
5-
# To exclude a file type: Simply add it to the 'include' list.
6-
# Example: To lint all files in every subfolder of 'test', add "test/**/*"
75
include = [
86
"torchao/float8/inference.py",
97
"torchao/float8/float8_utils.py",
@@ -12,9 +10,4 @@ include = [
1210
"torchao/float8/float8_tensor.py",
1311
"torchao/quantization/linear_activation_weight_observer.py",
1412
"test/quantization/test_observer.py",
15-
"torchao/dtypes/*"
16-
]
17-
18-
exclude = [
19-
"**/*.md"
2013
]

torchao/dtypes/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from .nf4tensor import NF4Tensor, to_nf4
2-
32
# from ..prototype.dtypes.uint2 import UInt2Tensor, BitnetTensor
43
from .uint4 import UInt4Tensor
54
from .affine_quantized_tensor import (
@@ -22,7 +21,7 @@
2221
__all__ = [
2322
"NF4Tensor",
2423
"to_nf4",
25-
"UInt4Tensor",
24+
"UInt4Tensor"
2625
"AffineQuantizedTensor",
2726
"to_affine_quantized_intx",
2827
"to_affine_quantized_intx_static",

0 commit comments

Comments
 (0)