From 174c6a077cb841b6738d3f19fd7390a52571eef2 Mon Sep 17 00:00:00 2001 From: Nicolas Hug Date: Fri, 22 Jul 2022 11:36:11 +0100 Subject: [PATCH 1/2] Update git-blame-ignore-revs following new ufmt version --- .git-blame-ignore-revs | 2 ++ CONTRIBUTING.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index b309038bf38..eec93854788 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -5,3 +5,5 @@ 5f0edb97b46e5bff71dc19dedef05c5396eeaea2 # update python syntax >=3.6 (#4585) d367a01a18a3ae6bee13d8be3b63fd6a581ea46f +# Upgrade usort to 1.0.2 and black to 22.3.0 (#5106) +6ca9c76adb6daf2695d603ad623a9cf1c4f4806f diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 31efa40923e..4dbca1d4243 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -83,7 +83,7 @@ Instead of relying directly on `black` however, we rely on [ufmt](https://github.com/omnilib/ufmt), for compatibility reasons with Facebook internal infrastructure. -To format your code, install `ufmt` with `pip install ufmt==1.3.2 black==21.9b0 usort==0.6.4` and use e.g.: +To format your code, install `ufmt` with `pip install ufmt==3.9.2 black==22.3.0 usort==1.0.2` and use e.g.: ```bash ufmt format torchvision From 17ea3eed502a8553778c4f3a869a962af29e4908 Mon Sep 17 00:00:00 2001 From: Nicolas Hug Date: Fri, 22 Jul 2022 19:40:54 +0100 Subject: [PATCH 2/2] Un-do ufmt version changed, got mixed up --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4dbca1d4243..3eedb6261a4 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -83,7 +83,7 @@ Instead of relying directly on `black` however, we rely on [ufmt](https://github.com/omnilib/ufmt), for compatibility reasons with Facebook internal infrastructure. -To format your code, install `ufmt` with `pip install ufmt==3.9.2 black==22.3.0 usort==1.0.2` and use e.g.: +To format your code, install `ufmt` with `pip install ufmt==1.3.2 black==22.3.0 usort==1.0.2` and use e.g.: ```bash ufmt format torchvision