torchfix icon indicating copy to clipboard operation
torchfix copied to clipboard

Apply TOR901 only to files in test dir

Open kit1980 opened this issue 9 months ago • 1 comments

See https://github.com/pytorch/pytorch/issues/125050 for details.

This will require passing file path as an input to the rules. In general it doesn't make too much sense, but for PyTorch-internal rule like TOR901 where we know the path in the CI this will allow to remove long enumerations of files to ignore from .flake8

kit1980 avatar Apr 29 '24 20:04 kit1980