Skip to content

Commit a481830

Browse files
author
Dbhasin1
committed
revert auto formatter changes and modify ufmt version
1 parent 1ca2d58 commit a481830

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Instead of relying directly on `black` however, we rely on
8383
[ufmt](https://github.com/omnilib/ufmt), for compatibility reasons with Facebook
8484
internal infrastructure.
8585

86-
To format your code, install `ufmt` with `pip install ufmt` and use e.g.:
86+
To format your code, install `ufmt` with `pip install ufmt==1.3.2 black==21.9b0 usort==0.6.4` and use e.g.:
8787

8888
```bash
8989
ufmt format torchvision

test/builtin_dataset_mocks.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
import pickle
1111
import random
1212
import xml.etree.ElementTree as ET
13-
from collections import Counter, defaultdict
13+
from collections import defaultdict, Counter
1414

1515
import numpy as np
1616
import PIL.Image
1717
import pytest
1818
import torch
19-
from datasets_utils import create_image_file, create_image_folder, make_tar, make_zip
19+
from datasets_utils import make_zip, make_tar, create_image_folder, create_image_file
2020
from torch.nn.functional import one_hot
2121
from torch.testing import make_tensor as _make_tensor
2222
from torchvision.prototype.datasets._api import find
@@ -1301,7 +1301,6 @@ def cub200(info, root, config):
13011301

13021302
@register_mock
13031303
def eurosat(info, root, config):
1304-
print("info", info)
13051304
data_folder = pathlib.Path(root, "eurosat", "2750")
13061305
data_folder.mkdir(parents=True)
13071306

0 commit comments

Comments
 (0)